Jump to content
UBot Underground

Trying to rotate proxies... Please help.


Recommended Posts

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!!

Link to post
Share on other sites

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

Link to post
Share on other sites
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)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...