Skip to content

Commit

Permalink
Fetch both no and nn
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtmtmtm committed Aug 10, 2015
1 parent 9f7554a commit 363f269
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('nn') or next
data = WikiData::Fetcher.new(id: id).data('no', 'nn') or next
# puts "%s %s" % [data[:id], data[:name]]
ScraperWiki.save_sqlite([:id], data)
end

0 comments on commit 363f269

Please sign in to comment.