Skip to content

Instantly share code, notes, and snippets.

@athalhammer
athalhammer / qrank_danker.sh
Created Oct 4, 2021
Spearman correlation: Wikidata QRank and Wikidata PageRank (danker)
View qrank_danker.sh
#!/usr/bin/env bash
export LC_ALL=C
if [ ! qrank_sorted.tsv ]; then
wget -O - https://qrank.toolforge.org/download/qrank.csv.gz | \
gunzip -c | \
tail -n+2 | \
sed "s/,/\t/" | \
sort -k1,1 \
> qrank_sorted.tsv