每次配代理IP都要重新填一遍参数。把这些模板存下来,换IP只改IP地址就行。
curl -x socks5://IP:1080 -U user:pass https://example.com
wget -e https_proxy=socks5://IP:1080 URL
# Python requests
proxies = {'http':'socks5://user:pass@IP:1080','https':'socks5://user:pass@IP:1080'}
# Node.js
const agent = new SocksProxyAgent('socks5://IP:1080')
# Scrapy
request.meta['proxy'] = 'socks5://user:pass@IP:1080'
# Git
git config --global http.proxy socks5://IP:1080
# Docker
docker run -e HTTP_PROXY=socks5://IP:1080 image
# npm
npm config set proxy socks5://IP:1080
只换IP地址,其他不变。天行IP邀请码blsj月付6元SOCKS5节点替换IP即用。
免责声明:代码示例仅供学习。






