Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  require 'net/http'
  require 'uri'
  output = Net::HTTP.get(URI.parse("http://www.google.com"))


curb is a lot faster than net/http

require 'curb' c = Curl::Easy.perform("http://www.google.com) puts c.body_str


I wanted to thank you for your help. I wrote a script to scrape over 30,000 courses and textbooks from Arizona State University successfully in a couple days.


So apparently accessing a secure URL isn't straightforward... No login is required, its just an HTTPS but it won't go in curb.


Wasn't an SSL problem but a cookie problem...


Premature optimization much?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: