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 18, 2017
1 parent 66498c0 commit e3044ef
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 @@ -47,4 +47,5 @@ def scrape_person(url, name, group)
ScraperWiki.save_sqlite(%i(id term), data)
end

ScraperWiki.sqliteexecute('DELETE FROM data') rescue nil
scrape_list('http://sobranie.mk/current-structure-2014-2018.nspx')

0 comments on commit e3044ef

Please sign in to comment.