2020-05-17 12:28:47 +02:00
|
|
|
# Fediverse Stats
|
2023-01-05 00:01:36 +01:00
|
|
|
This code gets all peers from mastodon.social. Goal is to collect maximum number
|
2020-05-17 12:28:47 +02:00
|
|
|
of alive fediverse's servers and then query their API to obtain their registered users (if their API provide such information).
|
|
|
|
At the end it post the results to host server bot account.
|
|
|
|
|
|
|
|
### Dependencies
|
|
|
|
|
|
|
|
- **Python 3**
|
|
|
|
- Postgresql server
|
2023-01-05 00:01:36 +01:00
|
|
|
- Mastodon running server.
|
2020-05-17 12:28:47 +02:00
|
|
|
|
|
|
|
### Usage:
|
|
|
|
|
|
|
|
Within Python Virtual Environment:
|
|
|
|
|
2021-05-14 10:39:26 +02:00
|
|
|
1. Run `pip install -r requirements.txt` to install needed libraries.
|
2020-05-17 12:28:47 +02:00
|
|
|
|
2023-01-05 00:01:36 +01:00
|
|
|
2. Run `python fetchservers.py` to add servers to alive servers database.
|
2020-05-17 12:28:47 +02:00
|
|
|
|
2023-01-05 00:01:36 +01:00
|
|
|
3. Run `python fediverse.py` to query world alive servers API. It gets data from server's nodeinfo.
|
2020-05-17 12:28:47 +02:00
|
|
|
|
2023-01-05 00:01:36 +01:00
|
|
|
4. Use your favourite scheduling method to set `python fediverse.py` to run twice daily, `python fetchservers.py` one time daily.
|
2021-10-26 13:38:12 +02:00
|
|
|
|
|
|
|
18.2.2021 - New feature! Added [Lemmy project](https://join.lemmy.ml)
|
|
|
|
12.5.2021 - New feature! Added Wordpress support. The code can now detect Wordpress instances with ActivityPub enabled plugin.
|
|
|
|
12.5.2021 - New feature! New shinny creation of servers and users graphs.
|
|
|
|
21.8.2021 - New feature! Added Best Fediverse's servers Uptime publishing bot.
|
|
|
|
22.10.2021 - New feature! Added [Funkwhale](https://funkwhale.audio) support.
|
|
|
|
26.10.2021 - New feature! Added [Socialhome](https://socialhome.network) support.
|
2023-01-05 00:01:36 +01:00
|
|
|
2.3.2022 - Improved server nodeinfo detection.
|
|
|
|
4.1.2023 - Refactored.
|
|
|
|
4.1.2023 - Now all peers are obtained from mastodon.social's peers list.
|