Created
May 25, 2011 18:10
-
-
Save bascht/991526 to your computer and use it in GitHub Desktop.
Pizza picker
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' | |
doc = Nokogiri::HTML(open('http://pizza.de/order/world-of-pizza/02/framek030.htm')) | |
menu = doc.xpath('//td[@id="framek"]//div[2]/div/div[1]/div[1]/b').to_a | |
puts "# Our Menu:\n * #{menu * ", \n * "}" | |
puts | |
puts "I'd recommend *#{menu.sample.content}*." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment