【发布时间】:2020-09-03 12:24:58
【问题描述】:
我开发了一个供个人使用的网络抓取软件。现在我需要每 30 秒更改一次我的 IP 地址以阻止阻止。每 30 秒更改一次 IP 地址的最佳方法是什么?
谢谢。
【问题讨论】:
-
解析和旋转代理(例如来自 free-proxy-list.net)
标签: windows networking web-scraping ip vpn
我开发了一个供个人使用的网络抓取软件。现在我需要每 30 秒更改一次我的 IP 地址以阻止阻止。每 30 秒更改一次 IP 地址的最佳方法是什么?
谢谢。
【问题讨论】:
标签: windows networking web-scraping ip vpn
如果你在 UNIX 系统上,你可以试试这个:
192.168.1)chmod 700 ip.sh./ip.sh(如果您不使用管理员帐户,请使用 sudo)ip.sh文件:
#!/bin/bash
index=2
while :
do
ifconfig eth0 <IP>.${index} netmask 255.255.255.0 up
index=$((index+1))
if [ "$index" -gt "254" ]; then
index=2
fi
sleep 30
done
【讨论】:
使用可以帮助您做到这一点的代理插件。
【讨论】: