Skip to content
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

有考虑过支持修改ja3指纹嘛 #381

Open
DeemoASCII opened this issue Dec 29, 2023 · 4 comments
Open

有考虑过支持修改ja3指纹嘛 #381

DeemoASCII opened this issue Dec 29, 2023 · 4 comments

Comments

@DeemoASCII
Copy link

目前使用ja3, 以及其他tls指纹的反爬越来越多了,能用且好用的请求库太少了

@guonaihong
Copy link
Owner

ja3没玩过,可否聊下,能解决的问题。以及是否需要从零开发协助库。

@DeemoASCII
Copy link
Author

应该是需要实现一个新的 transport
可以参考一下 https://github.com/wangluozhe/requests 这个库,这是目前对于最新的ja3,ja4支持最好的库,但是整个使用上面不能链式调用以及有比较多的缺陷,我目前只能自己魔改这个库在使用。
然后这个库使用的 ja3 transport 好像是他自己写的,在这里 https://github.com/wangluozhe/chttp
比较古老一点的是这个库 https://github.com/CUCyber/ja3transport ,但是已经很久没更新了,对于chrome110之后的浏览器加密拓展几乎都不支持

@DeemoASCII
Copy link
Author

Ja3指纹是一种用于识别和追踪SSL/TLS加密流量的哈希值,不管如何更换http请求头以及其他参数,同一个客户端的ja3指纹都是不变的,代码跟浏览器的ja3指纹也是不同的,后端可以通过ja3识别定位到流量请求是python 的httpx发出的,还是android的okhttp发出的等等,每一个客户端都有固定的特征,后端很容易通过这个识别到爬虫,主流的境外电商网站几乎都用了这个反爬,国内应该还比较少

@Shinku-Chen
Copy link

https://github.com/Shinku-Chen/Ja3RoundTripper

自己魔改的
传入到http.tr就行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants