Skip to content

Instantly share code, notes, and snippets.

@kaosf
Created November 18, 2013 14:23
Show Gist options
  • Save kaosf/7528577 to your computer and use it in GitHub Desktop.
Save kaosf/7528577 to your computer and use it in GitHub Desktop.
curl http://www.toei-anim.co.jp/ptr/precure/deco.html 2> /dev/null | \
grep "<a href=\"special\/" | \
ruby -e "STDIN.each_line do |l|
l.scan(/href=\"([^\"]*)\"/).flatten.each do |x|
puts x.slice(0, x.length - 4).split('/')[1]
end
end"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment