Created
January 14, 2013 00:14
-
-
Save nigelr/4526961 to your computer and use it in GitHub Desktop.
Cheat
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
it "meme" do | |
url = "http://www2b.abc.net.au/votecentral/Client/PlaceVote.aspx?E=96&IX=0&IG=2" | |
doc = Nokogiri::HTML(open(url)) | |
list = doc.at("div .IndexPageContent") | |
list = list.at("p") | |
list.css("span .artist").each do |item| | |
puts "#{item.text} - #{ item.next_element.next_element.text}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment