blob: 81fea49380504112684f950ab4e22efffdcd2da6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# About
Generate atom feeds for websites and other stuff without syndication support.
# Extract firefox cookies
Create a `cookie` file which later can be used with `curl` to pass things like e.g. privacy walls.
```sh
sqlite3 -separator $'\t' $(find ~/.mozilla/firefox/*.default-release -name cookies.sqlite) <<EOF >cookies
.mode tabs
.header off
select host,
case substr(host,1,1)='.' when 0 then 'FALSE' else 'TRUE' end,
path,
case isSecure when 0 then 'FALSE' else 'TRUE' end,
expiry,
name,
value
from moz_cookies;
EOF
```
# Usage
`./generate derstandard.at/international/asien/hongkong/stylesheet.xml`
# References
- https://www.w3schools.com/xml/xsl_intro.asp
- https://validator.w3.org/feed/docs/atom.html
# Todos
## Add entry content
`curl -sL -b cookies https://www.derstandard.at/story/2000122974234/hongkonger-demokratieaktivisten-wong-droht-weitere-strafe|xmllint --html --xpath '//main//article[@class="story-article"]//div[@class="article-body"]' /dev/stdin`
|