Josh 37 Posted January 31, 2013 Report Share Posted January 31, 2013 So I'm working on my first public bot that uses proxies. Because people (in general) are stupid I'm trying to make it as mistake proof as possible. I don't need someone to explain to me how to make proxies work. That is easy enough as I have proxies working and changing already. What I'm am hoping to get is some advise on how to implement them efficiently. I understand how to do this, but I think I'm just coding it really inefficiently as the bot is really bogging down as I'm working. This particular part of the bot isn't anything special. It is simply creating hotmail accounts to be used on another part of the bot. If anyone has some advise or code examples it would be greatly appreciated. Quote Link to post Share on other sites
Josh 37 Posted February 1, 2013 Author Report Share Posted February 1, 2013 ok so after hours of coding and recoding I think I have this figured out... loop while($not($exists(<id="idDiv_PWD_UsernameExample">)) AND $comparison($add(#proxy num, 1), "<=", $table total rows(&proxies))) { change proxy($table cell(&proxies, #proxy num, 0)) change browser properties() change useragent() navigate("http://hotmail.com", "Wait") wait complete() increment(#proxy num) wait(1) }If anyone has any thoughts or a better implementation I would be happy to hear it. This is looking to see if the username field does not appear on the page and if the IP number in the table is less than or equal to the total number of proxies. Then it changes the proxy and does the check again. Quote Link to post Share on other sites
AutomationNinja 194 Posted February 1, 2013 Report Share Posted February 1, 2013 (edited) ui open file("Email File:", #emailfile)ui text box("Private proxy user name:", #privateproxyusername)ui text box("Private proxy password", #privateproxypassword)add item to list(%proxies, $list from file(#emailfile), "Delete", "Global")clear cookiesset user agent("Internet Explorer 6")set referrer("https://google.ca")set proxy credentials(#privateproxyusername, #privateproxypassword)change proxy($next list item(%proxies)) Edited February 1, 2013 by AutomationNinja Quote Link to post Share on other sites
Josh 37 Posted February 1, 2013 Author Report Share Posted February 1, 2013 ui open file("Email File:", #emailfile)ui text box("Private proxy user name:", #privateproxyusername)ui text box("Private proxy password", #privateproxypassword)add item to list(%proxies, $list from file("C:\\"), "Delete", "Global")clear cookiesset user agent("Internet Explorer 6")set referrer("https://google.ca")set proxy credentials(#privateproxyusername, #privateproxypassword)change proxy($next list item(%proxies))well the proxies are stored in a table from another part of the bot and the first part of the proxy changing and credentials setting is done previously. Sorry I didn't mention that above. I was really having a hard time checking proxies and moving on to another if the proxy was bad. I had all kinds of if then commands. Quote Link to post Share on other sites
steelersfan 38 Posted December 19, 2014 Report Share Posted December 19, 2014 This is indeed helpful, so by doing it this way, the proxy changing can be triggered by something with loop while? 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.