Skip to content

Commit

Permalink
Fetch in batches of 200
Browse files Browse the repository at this point in the history
this should prevent morph running out of memory
  • Loading branch information
tmtmtmtm committed May 30, 2018
1 parent cf1d86f commit 484f656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.rb
Expand Up @@ -34,4 +34,4 @@ def members
morph_names = members.map { |w| w[:wikiname] }
toget = morph_names | names.values.flatten.uniq

EveryPolitician::Wikidata.scrape_wikidata(names: { en: toget })
EveryPolitician::Wikidata.scrape_wikidata(names: { en: toget }, batch_size: 200)

0 comments on commit 484f656

Please sign in to comment.