No description
Find a file
2022-12-12 02:46:11 +01:00
.gitignore gitignore config 2022-12-11 21:22:12 +01:00
config.example.yaml initial commit 2022-12-11 21:25:59 +01:00
README.md add readme 2022-12-11 21:56:17 +01:00
tagtotoot.py respect robots.txt 2022-12-12 02:46:11 +01:00

tagtotoot

This terrible script scrapes configured mastodon instances for configured tags and feeds the resulting list of toot URLs to your (single-user?) instances search API to fetch them for the federated timelime (or hashtag search, if your instances software supports that and why would it?)

If you want to use this copy config.example.yaml to config.yaml and fill in the blanks. You can get a bearer token by using pinafore, logging into your instance, open the network console (F12 in firefox), search for something and check the request headers on the GET operation.

All search requests made by this script are slow and blocking. If you schedule this to run at periodic intervals be sure to have some sort of locking so the script is not executed while the previous run is still working.

Requirements

  • Python
  • python-requests library