This code gets all peers from mastodon.social. Goal is to collect maximum number 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.
Anar al arxiu
2023-01-05 00:01:36 +01:00
db-setup.py Removed registered users info. Added Monthly Active Users (MAU) 2022-09-04 09:54:27 +02:00
fediverse.py Totally recoded 2023-01-05 00:01:36 +01:00
fetchservers.py Totally recoded 2023-01-05 00:01:36 +01:00
LICENSE Add LICENSE 2021-05-13 20:36:03 +00:00
mau.csv Added 2022-09-03 14:41:53 +02:00
mautable.md Pleroma develop's API gives MAU away 2022-09-03 11:29:14 +02:00
README.md Totally recoded 2023-01-05 00:01:36 +01:00
requirements.txt Totally recoded 2023-01-05 00:01:36 +01:00
servidors.csv +400 servidors nous 29.4.22 2022-05-04 14:14:24 +02:00
setup.py Totally recoded 2023-01-05 00:01:36 +01:00
uptime.py Decreased toot_text length to 470 2022-03-07 19:18:34 +01:00
uptime_setup.py Added tokens setup of Best Fediverse Uptime Publishing Bot 2021-08-21 11:22:59 +02:00

Fediverse Stats

This code gets all peers from mastodon.social. Goal is to collect maximum number 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
  • Mastodon running server.

Usage:

Within Python Virtual Environment:

  1. Run pip install -r requirements.txt to install needed libraries.

  2. Run python fetchservers.py to add servers to alive servers database.

  3. Run python fediverse.py to query world alive servers API. It gets data from server's nodeinfo.

  4. Use your favourite scheduling method to set python fediverse.py to run twice daily, python fetchservers.py one time daily.

18.2.2021 - New feature! Added Lemmy project
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 support.
26.10.2021 - New feature! Added Socialhome support.
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.