Skip to content

Commit

Permalink
Don't fetch from parallel scraper
Browse files Browse the repository at this point in the history
Everything here seems to also exist in P39s
  • Loading branch information
tmtmtmtm committed Apr 4, 2019
1 parent b10a40a commit b9dbe0a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scraper.rb
Expand Up @@ -6,9 +6,7 @@
as_ids: true,
)

scraped = EveryPolitician::Wikidata.morph_wikinames(source: 'tmtmtmtm/denmark-folketing-wp', column: 'wikiname')

sparq = 'SELECT ?item WHERE { ?item wdt:P39 wd:Q12311817 . }'
sparq = 'SELECT ?item WHERE { ?item wdt:P39 wd:Q12311817 }'
p39s = EveryPolitician::Wikidata.sparql(sparq)

EveryPolitician::Wikidata.scrape_wikidata(ids: p39s | wp2015, names: { da: scraped })
EveryPolitician::Wikidata.scrape_wikidata(ids: p39s | wp2015)

0 comments on commit b9dbe0a

Please sign in to comment.