Archiving Discourse Threads
With chas small Bash script I snapshot a webpage into ANSI and auto commit in
a local Git repo, but when saving a Discourse thread I have to run for each page
of it, as the no-JS render shows only 20 items.
I did another small Bash script to help: chasdiscoursethread. It:
- Cleans the URL
- Fetches post metadata to get how many pages
- Runs
chason all pages
Very simple, but saves precious seconds of life while snapshoting pages for later grepping.
Check a demo asciicast in Codeberg: https://codeberg.org/thisago/smallBashScripts/src/branch/master/demos/chasdiscoursethread.cast