Difference between revisions of "Wikidata/Statistics"
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<source lang='bash' highlight='1,2'> | <source lang='bash' highlight='1,2'> | ||
wget "https://wikidata-todo.toolforge.org/stats.php?action=download" -O wikidatastats.json | wget "https://wikidata-todo.toolforge.org/stats.php?action=download" -O wikidatastats.json | ||
− | cat wikidatastats.json| jq -r 'keys[] as $k | "\($k), \(.[$k] | .total_items)"' | + | cat wikidatastats.json| jq -r 'keys[] as $k | "\($k), \(.[$k] | .total_items)"' > wikidatastats.csv |
</source> | </source> | ||
+ | [[Category:Wikidata]] |
Latest revision as of 09:28, 22 July 2022
wget "https://wikidata-todo.toolforge.org/stats.php?action=download" -O wikidatastats.json
cat wikidatastats.json| jq -r 'keys[] as $k | "\($k), \(.[$k] | .total_items)"' > wikidatastats.csv