Python code that collects seom simple stats from your Mastodon followers and draws a graph showing your followers based on their instance. #quick-hack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cyberseb 4de8de2168 Update 'README.md' 3 weeks ago
LICENSE Initial commit 3 weeks ago
README.md Update 'README.md' 3 weeks ago
mastograph.py Add 'mastograph.py' 3 weeks ago
sebs_circles.png Upload files to '' 3 weeks ago
sebs_graph.png Upload files to '' 3 weeks ago

README.md

MastoGraph

Python code that collects some simple stats from your Mastodon followers (like which instance is home to the majority of your followers) and draws a graph showing your followers based on their instance.

Before you can run this successfully, you’ll need to...

  1. Install a couple of python packages
  • mastodon.py
  • pygraphml
  • matplotlib
  • networks
  1. Fill out the connection details at the top of the file
  • masto_instance (your Mastodon instance)
  • masto_user (email address you use to login to Mastodon)
  • masto_password (your super secret password) After the script has created its API keys, you can remove the password from the code. TODO: Ask for connection details during runtime

Here is the output of my followers last time I ran this:

seb’s circles seb’s followers

To allow for exploration of the graph, you could save the graph as a graphml file (instructions can be found here: https://github.com/hadim/pygraphml/blob/master/notebooks/documentation.ipynb ) and then open it in https://socnetv.org/ - Have FUN!

This code has been hacked together very quickly and might have some serious issues. Use at your own risk.