alabamafreddie 1 Posted September 4, 2013 Report Share Posted September 4, 2013 So I have a proxy list of 100,so do I use the change proxy list command 100 times ? Is there an easier way to rotate proxies, where I can just dump 200-400 proxies and Ubot can rotate them for me ? Quote Link to post Share on other sites
UBotDev 276 Posted September 4, 2013 Report Share Posted September 4, 2013 There is no easy way as you suggest...you need to add all proxies to UBot list, and loop through that list. For each list item you use "change proxy" command and you pass in the current "list item"/proxy. Quote Link to post Share on other sites
wilriv21 16 Posted September 4, 2013 Report Share Posted September 4, 2013 Couldn't we implement the $random list item data function? http://wiki.ubotstudio.com/wiki/$random_list_item Quote Link to post Share on other sites
UBotDev 276 Posted September 4, 2013 Report Share Posted September 4, 2013 Sure you can, but you should know that it could happen that "$random list item" could return the same proxy for more than once (2x,3x,...), because it's random. Quote Link to post Share on other sites
LazyBotter 188 Posted September 4, 2013 Report Share Posted September 4, 2013 Take a look at this code it might get you started: ui text box("Total Loops", #Cycles) ui open file("Proxy List:", #Proxies) ui stat monitor("Proxy:", #Proxy) ui stat monitor("Position:", "{#Proxy_Pos} / {$list total(%Proxies)}") set(#Proxy_Pos, 0, "Global") clear list(%Proxies) add list to list(%Proxies, $list from file(#Proxies), "Delete", "Global") loop(#Cycles) { clear cookies Change Proxy() navigate("http://www.ipchicken.com", "Wait") wait(1) } define Change Proxy { if($comparison(#Proxy_Pos, ">=", $list total(%Proxies))) { then { set(#Proxy_Pos, 0, "Global") } else { } } set(#Proxy, $list item(%Proxies, #Proxy_Pos), "Global") change proxy(#Proxy) wait(2) increment(#Proxy_Pos) } Carl 1 Quote Link to post Share on other sites
Otts 4 Posted September 12, 2013 Report Share Posted September 12, 2013 How would I copy this code and paste it into UBOT? Thanks Quote Link to post Share on other sites
UBotDev 276 Posted September 12, 2013 Report Share Posted September 12, 2013 I think your best bet is to try copy pasting them command after command (since you don't have code view, right?). Here is how you would do it, just copy paste like I did bellow: ui text box("Total Loops", #Cycles) ui open file("Proxy List:", #Proxies) ... loop(#Cycles) { clear cookies Change Proxy() navigate("http://www.ipchicken.com", "Wait") wait(1) } define Change Proxy { if($comparison(#Proxy_Pos, ">=", $list total(%Proxies))) { then { set(#Proxy_Pos, 0, "Global") } else { } } set(#Proxy, $list item(%Proxies, #Proxy_Pos), "Global") change proxy(#Proxy) wait(2) increment(#Proxy_Pos) } Quote Link to post Share on other sites
Otts 4 Posted September 13, 2013 Report Share Posted September 13, 2013 I think your best bet is to try copy pasting them command after command (since you don't have code view, right?). Here is how you would do it, just copy paste like I did bellow: ui text box("Total Loops", #Cycles) ui open file("Proxy List:", #Proxies) ... loop(#Cycles) { clear cookies Change Proxy() navigate("http://www.ipchicken.com", "Wait") wait(1) } define Change Proxy { if($comparison(#Proxy_Pos, ">=", $list total(%Proxies))) { then { set(#Proxy_Pos, 0, "Global") } else { } } set(#Proxy, $list item(%Proxies, #Proxy_Pos), "Global") change proxy(#Proxy) wait(2) increment(#Proxy_Pos) } I have done this but I get this error message, Please see image attached. Quote Link to post Share on other sites
UBotDev 276 Posted September 13, 2013 Report Share Posted September 13, 2013 I have done this but I get this error message, Please see image attached. That error tells you that UBot is expecting integer, but you feed a string instead...this usually happens when you forget to specify integer and variable has value ""; However, I think you forgot to enter number for "Total loops" or you didn't copy the whole code from LazyBotters post, specifically this line: set(#Proxy_Pos, 0, "Global") Quote Link to post Share on other sites
Otts 4 Posted September 13, 2013 Report Share Posted September 13, 2013 That error tells you that UBot is expecting integer, but you feed a string instead...this usually happens when you forget to specify integer and variable has value ""; However, I think you forgot to enter number for "Total loops" or you didn't copy the whole code from LazyBotters post, specifically this line: set(#Proxy_Pos, 0, "Global") I copied the code,please can you look at the .ubot attachment?proxy-code.ubot Quote Link to post Share on other sites
UBotDev 276 Posted September 13, 2013 Report Share Posted September 13, 2013 I copied the code,please can you look at the .ubot attachment?You didn't copy the whole code! As I said copy paste the whole code that LazyBotter provided above. 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.