seotrabajo 0 Posted September 6, 2014 Report Share Posted September 6, 2014 Hello, i am like 3 hours trying to get this up to work: ui text box("Views", #views) ui text box("URL", #url) ui text box("Watch Time in secs", #wait) 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(#views) { clear cookies Change Proxy() set referrer("www.facebook.com") navigate(#url, "Wait") wait for browser event("Page Loaded", 30) wait(#wait) 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) } } It is working, but let say I make the loop 15 times, then it uses 15 times the same proxys and it dosent use the next and next one... always only one proxy... thanks!! Quote Link to post Share on other sites
Bot-Factory 602 Posted September 6, 2014 Report Share Posted September 6, 2014 Hello, i am like 3 hours trying to get this up to work: ui text box("Views", #views) ui text box("URL", #url) ui text box("Watch Time in secs", #wait) 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(#views) { clear cookies Change Proxy() set referrer("www.facebook.com") navigate(#url, "Wait") wait for browser event("Page Loaded", 30) wait(#wait) 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) } } It is working, but let say I make the loop 15 times, then it uses 15 times the same proxys and it dosent use the next and next one... always only one proxy... thanks!! Looks good to me. I just tried it in V4 and V5 and the proxy rotation works fine. Where do you see that the proxy change doesn't work? In the Stat Monitor? Dan Quote Link to post Share on other sites
luis carlos 94 Posted September 7, 2014 Report Share Posted September 7, 2014 I tested in cualesmiip.com and works ok. It changes the proxy every loop. cualquier duda con gusto. Quote Link to post Share on other sites
arunner26 51 Posted September 7, 2014 Report Share Posted September 7, 2014 seotrabajo,I see that a couple of people found the code to be OK.I tried the code in UBOT v4.While it appeared to go through the loop, the website hits did not show up in my PIWIK stats for the website I used.I've never had much luck with proxies. Andy (Arunner26) 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.