【发布时间】:2020-08-04 08:49:11
【问题描述】:
您好,我尝试使用打击代码向https://www.playerup.com/ 发送请求:
import requests
header = {"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36"}
r = requests.get("https://www.playerup.com/",headers=header)
print(r.status_code)
但它给了我一个 [503] 类型错误 我尝试超时 5 秒,也无法正常工作 我该如何解决?
【问题讨论】:
-
503 告诉你什么?
-
我应该怎么罚款呢?当我尝试使用 Chrome 时,这很好,但在代码中我不知道我是初学者
标签: python python-3.x python-requests http-status-code-503