Python command line used in a crontab to monitor toots using a specific tag and auto boosting them
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.
alban 6668f5f719 [enh] Adds a status update script 1 year ago
toot.src @ 9dfdaaa280 [init] 1 year ago
.gitignore [enh] Adds a status update script 1 year ago
.gitmodules [fix] use submodule for toot 1 year ago
README.md Update 'README.md' 1 year ago
reboostTag.py [enh] README + dry_run 1 year ago
statusUpdateByDatetime.py [enh] Adds a status update script 1 year ago
toot [init] 1 year ago
toot-cli [init] 1 year ago

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