Navigation Menu

Skip to content

Commit

Permalink
Fewer per run
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtmtmtm committed Feb 27, 2016
1 parent ac6f245 commit 5b0dc68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scraper.rb
Expand Up @@ -28,8 +28,7 @@

names = @pages.map { |p| WikiData::Category.new( p, 'en').member_titles }.flatten.uniq

names.each_slice(250) do |sliced|
names.each_slice(100) do |sliced|
EveryPolitician::Wikidata.scrape_wikidata(names: { he: [], en: sliced })
end

warn EveryPolitician::Wikidata.notify_rebuilder

0 comments on commit 5b0dc68

Please sign in to comment.