Skip to content

Instantly share code, notes, and snippets.

@maeharin
Created December 27, 2012 03:12
Show Gist options
  • Save maeharin/4385148 to your computer and use it in GitHub Desktop.
Save maeharin/4385148 to your computer and use it in GitHub Desktop.
ruby -r open-uri -e 'open("http://b.hatena.ne.jp/hotentry") {|f| puts f.read.scan(/entry-link.+?>(.+?)</)}' | sed -e "s/続きを読む//g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment