elindo 0 Posted January 29, 2015 Report Share Posted January 29, 2015 Is it possible to build a bot that would automatically rotate proxies after finishing a task? I know the bots are meant to work with the internet, but is there a way for the bot to change his own settings? such as rotating proxies? Quote Link to post Share on other sites
Digital101 4 Posted January 30, 2015 Report Share Posted January 30, 2015 Is it possible to build a bot that would automatically rotate proxies after finishing a task? I know the bots are meant to work with the internet, but is there a way for the bot to change his own settings? such as rotating proxies? Grab a list from a file, load it into a list and then change them each time you run through whatever loop you are running. ui open file("Proxy List",#proxylist) add list to list(%proxies,$list from file(#proxylist),"Delete","Global")change proxy($random list item(%proxies)) Quote Link to post Share on other sites
dyvel 20 Posted January 30, 2015 Report Share Posted January 30, 2015 You need to define what a task is ... if it's just to the end of a loop, then it's simple. But sometimes you want the loop to run X times before you switch proxy.The way I have implemented such a case is by using 2 counters and a variable for counts between proxy shift. First I set: counter = 0current_count = 0shift_count = 20 (number of loops between proxy shift) on each loop I increment counter. Then I have some logic that says, if counter > current_count + shift_count, then change proxy and set current_count = counter. When I have used all proxies I reset the counters and start again. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.