BASH scripts for posting trending Communities on Lemmy
Results are posted at
https://feddit.nl/c/trendingcommunities
https://lemmynsfw.com/c/trendingcommunities
Relevant files:
REAL/jsons/1696917927367.json, provided by LemmyVerse on 2023-10-10 06:05
TEST/1696831545544.txt, derived from data provided the day before, on 2023-10-09 06:05
TEST/lastrun.txt, with a single line, for yesterday's timestamp of 1696831545544
Run
./tcbot.sh TEST 1696917927367
to show subscriber growth from 2023-10-09 06:05 to 2023-10-10 06:05
The above command will also update the files in TEST, so 1696917927367 becomes the new starting point.
New data can be retrieved by running get_latest_jsons.sh
When used as a argument to the script, growth will be shown if there's a 24 hour gap between the json and last_run_timestamp.txt
Everything in TEST can safely be deleted if you want to start from scratch
REAL mode is for uploading growth stats to a Lemmy Community, so requires files in REAL/community and REAL/logins to be populated