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

requests使用 #3

Open
pengyanbing84 opened this issue Jun 24, 2022 · 6 comments
Open

requests使用 #3

pengyanbing84 opened this issue Jun 24, 2022 · 6 comments
Labels
documentation Improvements or additions to documentation

Comments

@pengyanbing84
Copy link

这个可以跟requests结合一起使用吗?
如果可以,请问有示例吗?

@ihandmine
Copy link
Owner

ihandmine commented Jun 24, 2022

ua 这部分就是headers的UserAgent参数:

headers['UserAgent'] = UserAgent().random

关于headers相关的可以参考我的另一个包anti-header, 兼容拓展了ua包
tls 这部分可以参考Readme文档:
image

@pengyanbing84
Copy link
Author

set_tls_protocol(version="TLSv1_2") 这只是设置版本吗?
我可以添加你的微信吗?

@pengyanbing84
Copy link
Author

image

我发现hash并没有发生改变,ja3也是,可以修改ja3吗?

@Mrfuhang
Copy link

兄弟,可以修改啊,我这边都正常使用了。。。。
装饰器..... 内部循环代码只会执行一次的,
你把for循环放到get_html 外层就可以啦🙄

@pengyanbing84
Copy link
Author

那就是要不断的调用get_html, 大佬有办法改ja3:最后一个字符吗,0-1-2 我看浏览器都是0,

@pengyanbing84
Copy link
Author

大佬

ja3 tls version

session = set_tls_protocol(version="TLSv1_2")
这种方式怎么是指定吗?不用先实例化requests.session()

@ihandmine ihandmine added the documentation Improvements or additions to documentation label Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants