about summary refs log tree commit diff stats

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.

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