Move to data/ directory
This commit is contained in:
parent
272053df38
commit
a91c242951
|
@ -1,3 +1,4 @@
|
|||
vendor/
|
||||
html/
|
||||
*.csv
|
||||
*.csv
|
||||
data/
|
|
@ -4,7 +4,7 @@ require 'date'
|
|||
|
||||
restaurants = []
|
||||
|
||||
CSV.open("#{Date.today.to_s}.csv", 'wb') do |csv|
|
||||
CSV.open("data/#{Date.today.to_s}.csv", 'wb') do |csv|
|
||||
csv << ['url', 'title', 'location', 'address', 'cuisine']
|
||||
Dir.glob('html/restaurants-*.html') do |file|
|
||||
page = Nokogiri::HTML(open(file))
|
||||
|
|
Loading…
Reference in New Issue