Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/freamon/lemmy-trending-communities-bot

BASH scripts for posting trending Communities on Lemmy
https://github.com/freamon/lemmy-trending-communities-bot

bash-script lemmy

Last synced: about 1 month ago
JSON representation

BASH scripts for posting trending Communities on Lemmy

Lists

README

        

# lemmy-trending-communities-bot
BASH scripts for posting trending Communities on Lemmy

Results are posted at
https://feddit.nl/c/trendingcommunities
https://lemmynsfw.com/c/trendingcommunities

## Usage
Relevant files:
REAL/jsons/1696917927367.json, provided by [LemmyVerse](https://lemmyverse.net) 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

## Note

REAL mode is for uploading growth stats to a Lemmy Community, so requires files in REAL/community and REAL/logins
to be populated