Created
March 22, 2014 04:09
-
-
Save Sinceretear/9700945 to your computer and use it in GitHub Desktop.
some mech code
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
require 'rubygems' | |
require 'mechanize' | |
require 'open-uri' | |
class Hnhh | |
url = 'http://www.hotnewhiphop.com/archive/' | |
agent = Mechanize.new | |
page = agent.get(url) | |
page.links.each do |link| | |
puts link.to_html | |
end | |
end | |
puts Hnhh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment