Created
December 2, 2012 03:28
-
-
Save ZuluagaSD/4186829 to your computer and use it in GitHub Desktop.
This file contains 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 'nokogiri' | |
require 'open-uri' | |
url = "http://www.icefilms.info/" | |
doc = Nokogiri::HTML(open(url)) | |
shows = ['Two and a Half Men', 'Something else'] | |
puts doc.at_css("title").text | |
puts doc.xpath('//div[@id="fp_articles"]/h1').text | |
doc.xpath('//div[@id="fp_articles"]/p/a/img[@alt="Two and a Half Men"]').each do |show| | |
#link = show['href'] | |
puts show | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment