Skip to content

Commit

Permalink
Clean out database on each run
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtmtmtm committed Jan 8, 2017
1 parent b3de83f commit c4be587
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ def scrape_list(url)
end
end

ScraperWiki.sqliteexecute('DELETE FROM data') rescue nil
scrape_list('https://en.wikipedia.org/wiki/Members_of_the_2009%E2%80%9317_Lebanese_Parliament')

0 comments on commit c4be587

Please sign in to comment.