Last active
September 18, 2018 12:49
-
-
Save PLNech/be6d5757f0dd5bb785a33d27d86a27a7 to your computer and use it in GitHub Desktop.
Get how many public repositories mention a topic for a list of GitHub topics.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
echo "Counting repositories for GitHub topics ($# given)." | |
for topic in $@; do | |
count=`curl https://github.com/topics/$topic -s | grep Counter | cut -d'>' -f2 | cut -d'<' -f 1` | |
printf '%-20s: %-6s repos.\n' $topic $count; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example output: