Skip to content

Commit

Permalink
Fetch as 'nb', 'nn', and 'no'
Browse files Browse the repository at this point in the history
Labels are in ‘nb’ and ‘nn’. Wikipedia pages are on ‘no’ and ‘nn’
  • Loading branch information
tmtmtmtm committed Aug 10, 2015
1 parent 363f269 commit 4281843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.rb
Expand Up @@ -27,7 +27,7 @@

@pages.map { |c| WikiData::Category.new(c, 'no').wikidata_ids }.flatten.uniq.each_with_index do |id, i|
puts i if (i % 100).zero?
data = WikiData::Fetcher.new(id: id).data('no', 'nn') or next
data = WikiData::Fetcher.new(id: id).data('no', 'nb', 'nn') or next
# puts "%s %s" % [data[:id], data[:name]]
ScraperWiki.save_sqlite([:id], data)
end

0 comments on commit 4281843

Please sign in to comment.