[python]尝试报废时出现 503 错误 amazon.in

· 收录于 2023-09-24 04:00:08 · source URL

问题详情

法典--

result=requests.get('https://www.amazon.in/s?k=gaming+accessories&page=2&qid=1694537260&ref=sr_pg_2',headers=HEADERS)
soup=bs4.BeautifulSoup(result.text,"lxml")
print(soup)

输出---

<html>
<head>
<title>503 - Service Unavailable Error</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<!--
        To discuss automated access to Amazon data please contact api-services-support@amazon.com.
        For information about migrating to our APIs refer to our Marketplace APIs at https://developer.amazonservices.in/ref=rm_5_sv, or our Product Advertising API at https://affiliate-program.amazon.in/gp/advertising/api/detail/main.html/ref=rm_5_ac for advertising use cases.`your text`
-->
<center>
<a href="https://www.amazon.in/ref=cs_503_logo/">
<img alt="Amazon.in" border="0" height="45" src="https://images-eu.ssl-images-amazon.com/images/G/31/x-locale/communities/people/logo.gif" width="200"/></a>
<p align="center">
<font face="Verdana,Arial,Helvetica">
<font color="#CC6600" size="+2"><b>Oops!</b></font><br/>
<b>It's rush hour and traffic is piling up on that page. Please try again in a short while.<br/>If you were trying to place an order, it will not have been processed at this time.</b><p>
<img alt="*" border="0" height="9" src="https://images-eu.ssl-images-amazon.com/images/G/02/x-locale/common/orange-arrow.gif" width="10"/>
<b><a href="https://www.amazon.in/ref=cs_503_link/">Go to the Amazon.in home page to continue shopping</a></b>
</p></font>
</p></center>
</body>
</html>

我尝试使用标题但不起作用 我不知道为什么请求.get如果无法在亚马逊上抓取页面

最佳回答

暂无回答