jhao104 / jhao104/proxy_pool

代理按照文档并不能生效接入

Open
#669 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
23.7k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

作者你好,这几天再用你这个框架跑代理,接入了自己的代理按照你的文档接入proxies我以为成功了跑了几天今天本地ip黑了就很奇怪,进过排查发现按照你的文档去接入并不能使代理生效后面是使用以下代码才实现接入
`proxy ='http://'+ get_proxy().get("proxy")
proxies = {
"http": proxy,
"https": proxy,
}
response_json = requests.get(url, headers=headers,proxies=proxies).text`
![2b8946ca6614382b42540f377cc77e6](https://user-images.githubusercontent.com/50398207/169785838-2bf48e58-b4a2-4945-a13d-693a4dda9244.png)
![5a5f4041efd6fec09d32896c8c45002](https://user-images.githubusercontent.com/50398207/169785856-b95581de-dc89-4c63-8a98-c030cee843d3.png)
![8d017be85b7c8ab374ecefe97088dfd](https://user-images.githubusercontent.com/50398207/169785863-4d9207f9-00a6-4a27-a011-ef3c76e3e7e5.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.