dw-commentfest-scrape/README.md

17 lines
833 B
Markdown
Raw Permalink Normal View History

2026-06-14 23:48:45 +00:00
This scrapes Dreamwidth comments on a specific posts and sends them to a Discord webhook, generating the comment text and a link to the comment in HTML format ```<a href="url">text</a>``` wrapped in backticks. When put on systemd it runs every five hours (don't change that, to be respectful to DW) and if no new comments have been posted since the last one then it returns no comments.
this is my first python script idk
## How to use
Follow the comments in the scraper.py code to edit the code appropriately for your usage.
cp pyvenv.cfg.example pyvenv.cfg
replace in that file with your username
2026-06-15 00:15:37 +00:00
## REGARDING COMMENT PAGES
2026-06-14 23:57:23 +00:00
2026-06-15 00:15:37 +00:00
# You will have to manually change the url for the comment page when new comment pages appear. I know, sorry.
2026-06-14 23:48:45 +00:00
2026-06-15 00:15:37 +00:00
example ```https://toothpastejuice.dreamwidth.org/2061.html?view=flat&page=3#comments```
2026-06-14 23:48:45 +00:00