Skip to content

Commit

Permalink
Merge pull request #2 from everypolitician-scrapers/drop-table-before…
Browse files Browse the repository at this point in the history
…-each-run

Remove table from database before scraping
  • Loading branch information
tmtmtmtm committed May 10, 2017
2 parents 3240780 + 2e7a767 commit 28b7743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.rb
Expand Up @@ -40,5 +40,5 @@ def scrape_list(url)
end
end

ScraperWiki.sqliteexecute('DELETE FROM data') rescue nil
ScraperWiki.sqliteexecute('DROP TABLE data') rescue nil
scrape_list('http://www.congres.nc/assemblee/les-elus/?panel=5')

0 comments on commit 28b7743

Please sign in to comment.