build graph from mobilizon instances and followers
This commit is contained in:
17
cmd.txt
Normal file
17
cmd.txt
Normal 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
|
||||
Reference in New Issue
Block a user