简体   繁体   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?

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.我想制作一个 python 程序,该程序将无限次单击随机浏览器链接,但每次单击该链接时,ip 都需要有所不同。 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 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但这只是每秒更改ip,你必须自己编写Python代码

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

相关问题 Python-如何使该RNG程序在生成数字一次后继续运行x次 - Python - How do i make this RNG program continue to run for x amount of times after generating the number once 如何制作一个 python 程序以重复执行几个任务相同的次数但每个任务都有独立的时间间隔? - how to make a python program for doing a few tasks repeatedly for same number of times but each having independent time intervals? Python程序如何计算字母c出现的次数 - Python Program how to count number of times the letter c shows up 如何在python中打开具有不同代理IP地址的链接? - How to open a link with different proxy IP adresses in python? 如何使python程序使用不同的安装 - How to make python program use different installation 如何制作一个可以多次运行程序的python循环? - How to make a python loop that would run a program many times? 如何在 python 中让不同的事情在不同的时间发生 - How do I make different things happen at different times in python 如何编写程序以单击Python中的特定链接 - how do i write a program to click a particular link in Python 在python中监听无限数量的套接字 - Listening to an unlimited number of sockets in python 如何在python中实现无限数量的套接字连接? - How do I implement an unlimited number of socket connections in python?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM