📜  如果我得到 503,我怎样才能用漂亮的肥皂得到亚马逊的回应? - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:20.634000             🧑  作者: Mango

代码示例1
headers = {"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0", "Accept-Encoding":"gzip, deflate", "Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "DNT":"1","Connection":"close", "Upgrade-Insecure-Requests":"1"}

res = requests.get(productUrl, headers=headers)