Skip to content

Instantly share code, notes, and snippets.

@aaronpk
Created January 4, 2014 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronpk/8262019 to your computer and use it in GitHub Desktop.
Save aaronpk/8262019 to your computer and use it in GitHub Desktop.
$ irb
require 'mechanize'
agent = Mechanize.new {|agent| agent.user_agent_alias = "Mac Safari"}
scraper = agent.get 'https://www.brid.gy/like/twitter/aaronpk/418251719303495680/14447132' # works
scraper = agent.get 'https://www.brid.gy/like/googleplus/109182513536739786206/z12detsbpu2egrgfg223hzqw3xiuwlazj04/116247173913852395530' # fails
> OpenSSL::SSL::SSLError: SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server hello A
scraper = agent.get 'https://www.brid.gy/like/twitter/aaronpk/418251719303495680/14447132' # fails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment