Last active
August 29, 2015 14:08
-
-
Save yu81/9be3fdbcb9c96a12f320 to your computer and use it in GitHub Desktop.
Find Wild Hyuza at Astoltia by scraping Yahoo! Realtime Search using cooccurrence word of Hyuza(ヒューザ).
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
curl 'http://realtime.search.yahoo.co.jp/search?p=%E3%83%92%E3%83%A5%E3%83%BC%E3%82%B6&ei=UTF-8' | | |
sed -e 's/\\n//g' | | |
egrep -o '<em>ヒューザ<\/em> .+<\/a><\/dd>' | | |
sed -e 's/[a-zA-Z\/<>]//g' | | |
awk '{print ($2 != "") ? $2 : "Hyuza not found.";}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment