请求图像返回 403 响应

时间:2021-07-03 19:08:31

标签: python python-3.x python-requests

我正在请求一个 the bean lifecycle,它返回一个 403 响应。我尝试使用我的 User-Agent 和其他的,但它仍然返回 403。我知道有可能获得这个图像,因为 Image 使用网络 scrapers 来获取他们的图像。我当前的代码此时如下所示:

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)

我请求图片的方式有误吗?或者我应该添加其他参数/​​标题吗?

解决方案:

不要使用 User-Agent 作为标头

headers = {"Referer": "https://mangakakalot.com/"}

tachiyomi

0 个答案:

没有答案