Skip to content

Instantly share code, notes, and snippets.

@xiujunma
Last active December 10, 2015 02:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xiujunma/4367956 to your computer and use it in GitHub Desktop.
Save xiujunma/4367956 to your computer and use it in GitHub Desktop.
find out yyets ed2k url
require 'net/http'
ed2k_url_array = Net::HTTP.get(URI.parse('http://www.yyets.com/php/resource/10733')).scan(/"(ed2k:\/\/.+?)"/)
ed2k_url_array.each { |ed2k_url| puts ed2k_url }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment