requests庫使用socks5代理
備查: ...
requests在 . . 版本開始支持socks代理 自己搭了個服務器所以就想順便用一下。 import requests url xxx my proxies http : socks h: . . . : , https : socks h: . . . : r requests.get url url, proxies my proxies, timeout 這里使用的是socks h,一 ...
2020-03-10 14:49 0 624 推薦指數:
備查: ...
方法1 安裝PySocks 使用代理 方法2 ...
= ProxyConnector() socks = 'socks5://127.0.0.1:12377' ...
記錄下 以前: 現在: ...
安裝一些依賴 安裝shadowsocks pip install shadowsocks, 編輯文件(沒有就新建), vim /etc/shadowsocks.json, 添加以下內容: ...
...
使用前先更新requests版本為支持socks的版本。 pip install -U requests[socks] ...
Step 1. Make sure the SOCKS tunnel on your work computer allows LAN connections so your iPhone/iPod Touch can connect to it. Step 2. Create a text ...