1
0
Fork 0
mastodon/RMFOLLOW.md

75 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

2023-04-24 10:54:02 -06:00
# Spam Followers
Spammers sometimes follow an account just to spam their links in their
account name.
# Removing Spam Followers
The below script automatically removes particular spam followers.
It can be set in cron.
# Installation
Install thusly.
2023-04-24 11:06:10 -06:00
Rootly:
```
apt update
apt install python3-virtualenv python3-pip
```
User:
2023-04-24 10:54:02 -06:00
```
git clone https://spacecruft.org/deepcrayon/mastodon
cd mastodon/
virtualenv -p python3 env
source env/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
```
# Configure
Configure thusly.
Go to your Mastodon web page, click `Development` and `New Application`.
Set permissions there.
Set URL for API and API password from above.
2023-04-24 10:54:02 -06:00
```
cp cp src/settings.py-dist src/settings.py
$EDITOR src/settings.py
2023-04-24 10:54:02 -06:00
```
# Usage.
Use thusly.
```
cd mastodon/
source env/bin/activate
# Get Mastodon instance description, to make sure API url/password are ok.
./src/description
# XXX not yet
2023-04-24 10:54:02 -06:00
./src/rm-follower-spam
```
# Status
Draft, not usable yet.
# Copyright
Unofficial project, not part of official Mastodon software or
website. Upstream sources under their respective copyrights.
2023-04-24 10:56:30 -06:00
License: GPLv3+.
2023-04-24 10:54:02 -06:00
*Copyright © 2023, Jeff Moe.*