Python command line used in a crontab to monitor toots using a specific tag and auto boosting them
ファイルへ移動
alban e50a704785 [fix] Cosmetic 2019-08-04 19:19:36 +02:00
toot.src@9dfdaaa280 [init] 2019-06-15 20:31:53 +02:00
.gitignore [enh] Adds a status update script 2019-08-04 18:39:11 +02:00
.gitmodules [fix] use submodule for toot 2019-06-15 21:03:34 +02:00
README.md Update 'README.md' 2019-06-16 16:41:47 +00:00
reboostTag.py [fix] change reboost messages 2019-08-04 18:39:57 +02:00
statusUpdateByDatetime.py [fix] Cosmetic 2019-08-04 19:19:36 +02:00
toot [init] 2019-06-15 20:31:53 +02:00
toot-cli [init] 2019-06-15 20:31:53 +02:00

README.md

Activity Pub Tag Booster

Automatically boost messages on the fediverse based on tags aka. hashtags.

Based on the pip3 toot library, with a hackish way to pilot it.

How to install and run


# clone project
git clone https://git.lelab.fr/alban/ActiPubTagBooster

# load depencies
git submodule init
git submodule update 
cd toot.src/
pip3 install -r requirements.txt 
cd ..

# choose instance and accept a new app
./toot-cli login

# pick your tag
TAG="photo"

# pick your cache DIR
CACHE_DIR="$HOME/.cache/ActiPubTagBooster"
mkdir -p "$CACHE_DIR"

# It should work
./reboostTag.py --help

# run a first time with the --dry-run flag, or reboost all toots
./reboostTag.py -d -c 1 -t $TAG -p "$CACHE_DIR"

# add to your crontab
*/5 * * * *  /usr/bin/python3 :PATH:/ActiPubTagBooster/reboostTag.py -c 1 -t weeklyphotochallenge &>> :LOG_PATH:/ActiPubTagBooster.log
# or to cron.d/ActiPubTagBooster
*/5 * * * * :USER: /usr/bin/python3 :PATH:/ActiPubTagBooster/reboostTag.py -c 1 -t weeklyphotochallenge &>> :LOG_PATH:/ActiPubTagBooster.log