Skip to content

Commit

Permalink
disable SSL check
Browse files Browse the repository at this point in the history
  • Loading branch information
joergreichert committed Feb 18, 2018
1 parent 9cc819f commit 0c7a678
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scraper.rb
Expand Up @@ -28,6 +28,11 @@ def scrapedPapers

uri = "#{Scraper.expand_uri(Scraper.config['recent_papers_path'])}"
client = HTTPClient.new
client.ssl_config.verify_mode = OpenSSL::SSL::VERIFY_NONE
client.receive_timeout=500
if HTTPClient.respond_to?("client.transparent_gzip_decompression=")
client.transparent_gzip_decompression = true
end
res = client.get uri
cookie = res.header["Set-Cookie"].first.split(';').first.split('=')

Expand Down

0 comments on commit 0c7a678

Please sign in to comment.