about summary refs log tree commit diff stats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md37
1 files changed, 37 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..81fea49
--- /dev/null
+++ b/README.md
@@ -0,0 +1,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`