Difference between revisions of "Wikidata/Statistics"

From BITPlan Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
* https://wikidata-todo.toolforge.org/stats.php
 
* https://wikidata-todo.toolforge.org/stats.php
<source lang='bash'>
+
<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)"'
 
</source>
 
</source>

Revision as of 15:39, 21 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)"'