build graph from mobilizon instances and followers

This commit is contained in:
2022-11-25 18:10:45 +01:00
commit 234773b8f0
4 changed files with 84 additions and 0 deletions

17
cmd.txt Normal file
View File

@@ -0,0 +1,17 @@
. .venv/bin/activate
pip install scrapy
wget https://framagit.org/-/snippets/6539/raw/main/pp.awk
curl -fsS 'https://instances.joinmobilizon.org/api/v1/instances?start=0&count=1000' | jq -r '.data[].host' instances.json > instances.txt
scrapy runspider -o out.csv:csv fedcrawler_followers.py
dos2unix out.csv
uniq0 out.csv >| out.u.csv
bash <(awk -f pp.awk template.dot) < out.u.csv >| out.dot
neato -Tsvg -o out.svg out.dot