From e40a5447ee1247756d1facd454ccdf0238933417 Mon Sep 17 00:00:00 2001 From: nanos Date: Tue, 28 Mar 2023 07:04:31 +0100 Subject: [PATCH] Add a sample bash script --- examples/FediFetcher.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 examples/FediFetcher.sh diff --git a/examples/FediFetcher.sh b/examples/FediFetcher.sh new file mode 100644 index 0000000..5ef20eb --- /dev/null +++ b/examples/FediFetcher.sh @@ -0,0 +1,21 @@ +# 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. + +###################### 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 \ No newline at end of file