FediFetcher/examples/FediFetcher.sh

25 lines
814 B
Bash
Raw Normal View History

2023-03-28 08:04:31 +02:00
# This script is a sample script that you can schedule
# to run every 10 minutes from your cron job.
# Supply any other arguments, as you see fit.
2023-03-28 10:38:48 +02:00
# Sample schedule:
# */10 * * * * /usr/bin/bash /path/to/FediFetcher.sh
2023-03-28 08:04:31 +02:00
###################### IMPORTANT ######################
# #
# YOU SHOULD RUN THIS SCRIPT MANUALLY AT LEAST ONCE #
# WITH YOUR CHOSEN ARGUMENTS, TO AVOID CONCURRENT #
# EXECUTIONS OF FEDIFETCHER! #
# #
###################### IMPORTANT ######################
cd /path/to/FediFetcher
python find_posts.py \
--access-token=TOKEN \
--server=your.server.social \
--home-timeline-length=200 \
--max-followings=80 \
--from-notifications=1 \
--lock-hours=1