繁体   English   中英

如何使用不同的 ip 制作将无限次单击浏览器链接的 python 程序?

[英]How to make a python program that is going to click on a browser link for unlimited number of times with the different ip?

我想制作一个 python 程序,该程序将无限次单击随机浏览器链接,但每次单击该链接时,ip 都需要有所不同。 我将使用它作为链接邀请奖励。

According Vamshi Reddyin in Linux shell you can do like this or in windows with Cygwin shell

#!bash
counter=0
# Assuming eth0 is your interface

while [ $counter -lt 256 ]
do
# Suppose you want prefix of 12.12.12.0/24
a=12
b=12
c=12
d=$counter
ip="$a.$b.$c.$d"
echo "Ip Address is changed to $ip"
ifconfig eth0 $ip
counter=`expr $counter + 1`
# Now sleep for one second
sleep 1
done

但这只是每秒更改ip,你必须自己编写Python代码

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM