代理IP配置模板合集 常用软件的一键复制粘贴配置代码

十款常用软件代理配置模板合集:curl wget Python Node Scrapy Git Docker npm pip。换IP地址即用。天行IP blsj月付6元SOCKS5。
发布于 更新于
8

每次配代理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即用。

免责声明:代码示例仅供学习。

本文由作者原创/授权发布于极跃圈(jiyueip.com),未经许可,禁止转载。题图来自Unsplash,基于CC0协议。

声明:极跃圈(JIYUEIP.com)内网友所发表的所有内容及言论仅代表其本人,并不反映任何极跃圈(JIYUEIP.com)之意见及观点。

0 / 600
0 讨论
热门最新
总结
暂无总结

暂无数据