Created
December 8, 2016 10:00
-
-
Save greymd/5912c46f99575a29262876fe4cb486bb to your computer and use it in GitHub Desktop.
言語ランキング
This file contains hidden or 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/bash | |
| curl -so- http://qiita.com/advent-calendar/2016/categories/programming_languages | \ | |
| grep -oP '(?<=<a href=")/advent-calendar/2016/[^"]+?(?=")' | \ | |
| sort | uniq | while read s; do printf "$s "; curl -so- "qiita.com$s" | \ | |
| grep -oP '(?<= fa-thumbs-up"></i>).*?(?=</li>)'; sleep 1 ;done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment