
自动切换IP的思路
很多API在多次请求后开始限制IP进行请求,这时候如果要再次请求,就需要更换IP
解决方法可以是:
- 使用免费的代理IP进行请求,但是免费的稳定性太差
- 使用付费的代理IP进行请求,但是增加成本
- 使用replit,每次运行程序会使用不同的IP,但是如果写的脚本别人看到,那就要付费升级,也增加了成本
最近Cloudflare出了一个VPN程序,每次连接IP都会不同,并且提供了cli,写个脚本自动关闭开启,这样每次都有不同的IP地址,解决了API对IP的限制,还不需要成本
image.png
- Thanks for your appreciation. / 感谢您的赞赏
List of appreciation
Because of your support, I realize the value of writing articles. / 由于您的支持,我才能够实现写作的价值。
This piece of writing is an original article, utilizing theCC BY-NC-SA 4.0Agreement. For complete reproduction, please acknowledge the source as Courtesy ofERICET
Comment ()