Keep track of restaurant openings and closures in the city. https://twitter.com/BLRFoodCensus
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

12 lines
226 B

require 'nokogiri'
require 'csv'
require 'date'
restaurants = []
Dir.glob('html/restaurants-*.html') do |file|
page = Nokogiri::HTML(open(file))
page.css('.plr10').each do |div|
puts div.css('a')[0]['href']
end
end