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

添加付费代理问题 #6

Open
Sunny-Yun opened this issue Nov 27, 2024 · 1 comment
Open

添加付费代理问题 #6

Sunny-Yun opened this issue Nov 27, 2024 · 1 comment

Comments

@Sunny-Yun
Copy link

我想问一下想要添加亮数据的代理,代理池那一块的代码需要改吗,能怎么改,可以直接这么添加代理吗
def get_home(self):
self.sees.get(
url=GET_HOME, #对应携程网的评论网址
headers={
"User-Agent": get_fake_user_agent("mobile")
},
#proxies=my_get_proxy(),
proxies={'http': 'http://127.0.0.1:24001'},
timeout=TIME_OUT
)

@Sunny-Yun Sunny-Yun reopened this Nov 28, 2024
@aglorice
Copy link
Owner

看你具体的,我那个只是一个基础,根据你具体的整就可以了😊

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

2 participants