Skip to content

Commit

Permalink
added sol arona tenerife with date
Browse files Browse the repository at this point in the history
  • Loading branch information
n0name45 committed Jun 1, 2018
1 parent 2cc991d commit f7c4d00
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scraper.rb
Expand Up @@ -38,8 +38,7 @@
fam_div = nokogiri_page.css("div[data-category=FAM]")
hname = 'Sol Arona Tenerife'
hprice = fam_div.css('span.price-regimen')[3].text.delete('€').delete(',').strip.to_i
puts hname
puts hprice
ScraperWiki.save_sqlite(["name"], { "name" => hname, "price" => hprice})
ScraperWiki.select("* from data")
hdate = DateTime.now.strftime("%d-%m-%Y %H-%M")

ScraperWiki.save_sqlite(["name"], { "date" => hdate,"name" => hname, "price" => hprice})

0 comments on commit f7c4d00

Please sign in to comment.