Automatically boost Mastodon toots with defined hashtags
913
If you want to run the code without docker
# clone the repository
git clone https://github.com/pfitzer/mastoboost.git
cd mastoboost
# create virtualenv
python3 -m venv venv
venv/bin/activate
pip install -r requirements.txt
# create envorionment variables
export INSTANCE=https://...
export USERNAME=YOUR_USERNAME
export PASSWORD=YOUR_PASSWORD
nohup python mastoboost/cli.py > /path/to/output.log 2>&1 &
The hashtags are defined in the config.yml file.
# config.yml
hashtags:
- tag1
- tag2
- tag3
# ,env file
INSTANCE=https://...
USERNAME=YOUR_USERNAME
PASSWORD=YOUR_PASSWORD
version: '3'
services:
app:
image: pfitzer/mastoboost
restart: always
volumes:
- ./config.yml:/app/config.yml
env_file:
- .env
environment:
- PYTHONUNBUFFERED=1
command: >
sh -c "python mastoboost/cli.py"
Content type
Image
Digest
sha256:8df1060f0…
Size
389.5 MB
Last updated
almost 2 years ago
docker pull pfitzer/mastoboost