-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ascii2d 报错403 似乎是因为触发cf引起 #13
Comments
先说下我之前的情况。
今天我使用了cloudscraper这个库来跳过CF 5秒盾的,甚至不带headers都可以访问,终于看到的不是可恶的403了 url = "https://ascii2d.net/search/url/http://5b0988e595225.cdn.sohucs.com/images/20200109/74e33947a41248839725d6c8d54540e4.jpeg"
headers= {}
payload = {}
# Use CloudScrpaer
import cloudscraper
scraper = cloudscraper.create_scraper()
response = scraper.get(url, headers=headers, data = payload)
# Not Use CloudScrpaer
print("\n")
response = requests.request("GET", url, headers=headers, data = payload) |
挺好,可惜js类似的库不更新了,不然隔壁cq-picsearcher-bot也可以用 |
感谢提供解决方法🙏 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用本地图片或网络图片都是一样的结果。可以参考cq-picsearcher-bot项目的issue
运行截图

The text was updated successfully, but these errors were encountered: