我请求一个Image,它返回403响应。我尝试使用我的用户代理和其他代理,但仍然返回403。我知道有可能得到这张图片,因为tachiyomi使用webscraper获得他们的图片。目前我的代码如下所示:
headers = {"User-Agent": "a user agent"}
res= requests.get("https://s5.mkklcdnv6tempv3.com/mangakakalot/r1/read_bleach_manga_online_for_free2/chapter_673_father/1.jpg", headers=headers)
print(res.status_code)
我请求图像的方式是错误的吗?或者我是否应该添加其他参数/标题
而不是像头那样使用用户代理
headers = {"Referer": "https://mangakakalot.com/"}
目前没有回答
相关问题 更多 >
编程相关推荐