fedigraph/cmd.txt

18 lines
433 B
Plaintext
Raw Normal View History

. .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