简体   繁体   中英

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

I want to make a python program that is going to click on a random browser link for unlimited number of times but every time it clicks the link the ip needs to be different. I am going to use this for the link invite rewards.

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

But this is just to change the ip every second, and you have to write the Python code yourself

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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