Forums

Error 503 when getting Amazon with Requests

I'm trying to use the Requests module to do web scraping on Amazon, but I get error 503 with below code. Why can't I access Amazon? Thanks in advance!

>>> page = requests.get('https://www.amazon.es/dp/B077YLDC5N')
>>> page
<Response [503]>

A 503 status code normally means "Service unavailable" -- it's returned by a server when it's overloaded. But that would be a pretty weird thing to happen from Amazon -- I'm sure they have enough server capacity to handle pretty much everything!

I tried running the code from my own account just now and got a <Response [200]> -- is the problem you're seeing intermittent?