Created
October 28, 2013 21:54
-
-
Save pzula/7205501 to your computer and use it in GitHub Desktop.
Nokogiri find content in page
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 'nokogiri' | |
require 'open-uri' | |
url = "http://www.thebikedepot.org/index.php/about" | |
page = Nokogiri::HTML(open(url)) | |
page.css('#content-w2').select do |element| | |
puts | |
puts element.to_html | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment