Block the servers running the software of your choice from your Mastodon server's peers.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spla 1281d4bf8e
Added private and public comments
5 months ago
LICENSE Added LICENSE 6 months ago
README.md Added private and public comments 5 months ago
blocksoft.mov Vídeo demo 6 months ago
blocksoft.py Added private and public comments 5 months ago
peers.py Removed unneeded function 6 months ago
requirements.txt Changed Mastodon.py to Mastodonplus.py library 5 months ago
software.txt Added file software.txt and updated README.md 6 months ago
sqlite-bs.py Added sqlite3 support 6 months ago
sqlite-peers.py Added sqlite3 support 6 months ago
sqlite-requeriments.txt Updated sqlite requirements 5 months ago

README.md

BlockSoft

Get all the running software of the peers of your Mastodon server and block the software you want.

Dependencies

  • Python 3
  • Postgresql server
  • Mastodon server admin access token

Usage:

Within Python Virtual Environment:

  1. Run pip install -r requirements.txt (or sqlite-requeriments.txt for sqlite3 version) to install needed Python libraries.

  2. Run python peers.py (or sqlite-peers.py for sqlite3 version) to collect and store all needed data from your server peers.

  3. Edit software.txt file, add the software you want to block and the reason to do it, one pair software and reason per line, separating software and reason with a single space. Then save it.

  4. Run python blocksoft.py (or sqlite-bs.py for sqlite3 version) to block the configured software.

demo