Created
November 24, 2018 13:49
-
-
Save edezekiel/3dcd50dfdb1391938850bfc79ba0ae6e to your computer and use it in GitHub Desktop.
nokogiri-example
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
def get_category | |
doc = Nokogiri::HTML(open("https://www.ruby-toolbox.com")) | |
doc.css(".category-group").each do |category| | |
puts category.css("h3").text | |
end | |
get_subcategory_screen | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment