Skip to content

Commit

Permalink
fetch in batches of 100
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtmtmtm committed Mar 25, 2016
1 parent cf7358b commit c41e4ed
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scraper.rb
Expand Up @@ -27,8 +27,5 @@
]

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

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

0 comments on commit c41e4ed

Please sign in to comment.