简体   繁体   English

python request.get 总是抛出状态码 200

[英]python request.get always throws status code 200

python request.get always throws status code 200. This is coming even after adding an user agent in the request.get( ). python request.get 总是抛出状态码 200。即使在 request.get( ) 中添加了用户代理后也会出现这种情况。 As status_code is always 200, a file from that website is downloaded even if doesn't exists there.由于 status_code 始终为 200,因此即使该网站不存在文件,也会下载该网站的文件。 How to get correct atatus_code?如何获得正确的 atatus_code?

200 - "The HTTP 200 OK success status response code indicates that the request has succeeded." 200 - “HTTP 200 OK 成功状态响应码表示请求已成功。” This means it worked, Now.这意味着它起作用了,现在。 on to the next steps..: :)继续下一步.. : :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM