赞
踩
- import requests
-
- headers = {
- 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36'}
- proxies = {
- 'http': 'socks5://127.0.0.1:10808', # 本地的代理转发
- 'https': 'socks5://127.0.0.1:10808'
- }
- url = "https://medium.com/"
- # url = "https://baidu.com/"
-
- response = requests.get(url, headers=headers, proxies=proxies, timeout=10)
- print(response)
- print(response.text)
--- socks5 转发到本地另一个软件 如下设置
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。