Skip to content

Commit

Permalink
Drop table before each run
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtmtmtm committed Apr 27, 2018
1 parent 15772fa commit 931f221
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scraper.rb
Expand Up @@ -70,6 +70,7 @@ def scrape_person(url)
ScraperWiki.save_sqlite([:name, :term], data)
end

ScraperWiki.sqliteexecute('DROP TABLE data') rescue nil
base = 'http://164.100.47.194/Loksabha/Members/AlphabeticalList.aspx'
member_urls(base).each do |url|
scrape_person(url)
Expand Down

0 comments on commit 931f221

Please sign in to comment.