Skip to content

Commit

Permalink
Turn on archiving
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtmtmtm committed Jan 8, 2017
1 parent 0f1164e commit 72a9d18
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scraper.rb
Expand Up @@ -6,8 +6,9 @@
require 'scraped'
require 'pry'

require 'open-uri/cached'
OpenURI::Cache.cache_path = '.cache'
# require 'open-uri/cached'
# OpenURI::Cache.cache_path = '.cache'
require 'scraped_page_archive/open-uri'

def noko_for(url)
# The server returns a 500 error for a successful page!
Expand Down Expand Up @@ -50,6 +51,7 @@ def scrape_mp(url)
source: url.to_s,
}
data[:gender] = gender_from(data[:name])
# puts data
ScraperWiki.save_sqlite(%i(id term), data)
end

Expand Down

0 comments on commit 72a9d18

Please sign in to comment.