type
status
date
slug
summary
tags
category
icon
password
项目中使用爬虫的功能中需要对不同的域名使用不同的ip代理进行爬取,该方案中使用v2ray的路由配置实现。
config.json
./v2ray -c ./config.json
curl -v -x 192.168.6.10:1080 https://forge.speedtest.cn/api/location/info
考虑过使用netty自己实现,但是在对https的处理比较麻烦,使用v2ray来实现。代码那调用代理最好使用内网ip+port,使用公网ip有可能被阻断(防火墙)
参考资料
- 作者:Killi
- 链接:https://udeth.com/article/ip-proxy-gateway
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。