I tried looking for answers on other threads but didn't feel like the responses were relevant to my situation (I apologize if that's not the case). That said, I am trying to run a simple ruby script in irb
> require 'mechanize'
>
> agent = Mechanize.new
>
> page = agent.get('https://www.amazon.com/')
Essentially I am trying to webscrape Amazon, and for some reason I am running into this error:
> Mechanize::ResponseCodeError: 503 => Net::HTTPServiceUnavailable for
> https://www.amazon.com/ -- unhandled response
Has anyone ever encountered this before? I feel like the solution is simple, but I can't wrap my brain around it.
Thanks for your time,
-javi