Jump to content
UBot Underground

How to load proxies from txt file and use them


Recommended Posts

Hi to everyone here,

this is my first post here

I just bought the UBOt Studio standard version and i made a bot that visiting a website search in website click something and downloads a file.

I want to be able to give it a txt with proxies and loop all the functions  until have used all the proxies .then exit ..

Can someone give me any example code or something like tutorial to help me ?

Thanks in advance...

 

Link to post
Share on other sites
newbieubot78,

I started out with the training provided by UBOT Studio at http://www.ubotstudio.com/tutorials

After watching those I bought some training from ubotbuddy which were very worthwhile http://ubottraining.com/advanced-access/advanced-access/

 

Good luck with your BOT building.

 

Andy (Arunner26)

Link to post
Share on other sites

Hi ,


Thank you all for your answers ...i finally found an article here http://support.ubots...hanging-proxies


I followed this and i created thisbot ..but it doesn't work....i have attached you the code..The purpose of the bot is to increase the downloads counter from a download com 


What is wrong in my code?


It must normally loop but it doesn't




 

downloadsincreaser.ubot

Link to post
Share on other sites

 

Hi ,

Thank you all for your answers ...i finally found an article here http://support.ubots...hanging-proxies

I followed this and i created thisbot ..but it doesn't work....i have attached you the code..The purpose of the bot is to increase the downloads counter from a download com 

What is wrong in my code?

It must normally loop but it doesn't

 

 

It looks fine to me, it should run at least, what do you mean by "normally loop?"

Link to post
Share on other sites

Hey TC, thanks.

 

I've been trying to find that [Free] Multi Threaded Private Proxy Checker

 

I knew I had seen one but couldn't find it.

 

Andy (Arunner26)

old but shows basics

 

YW

Link to post
Share on other sites

It looks fine to me, it should run at least, what do you mean by "normally loop?"

Is it working to you normally? 

When i tested it it only run once without using the proxy and after that stop. It's doen't read from file for proxies and use them until finish the list .

Link to post
Share on other sites
LoWrIdErTJ - BotGuru,

Thanks for the tutorial share.

When I use my private proxies I never know whether to use the http port or the sock5 port since the company gave me both to use.

I must say that I have never had much luck using proxies with most programs (even my private ones).

Most programs I've tried to use proxies with just seem to hang; but if I take them out the program works fine.

Link to post
Share on other sites

You have to set the dilimiter of ubot to a colon for these to work

<!----------------------------------------------- WITHOUT LOOP -------------------------------------------->
ui open file("Proxies:", #proxies)
clear table(&proxy table)
clear table(&current proxy table)
create table from file(#proxies, &proxy table)
change proxy("{$table cell(&proxy table, 0, 0)}:{$table cell(&proxy table, 0, 1)}")
set proxy credentials($table cell(&proxy table, 0, 2), $table cell(&proxy table, 0, 3))
navigate("http://www.whatsmyip.org/", "Wait")
<!------------------------------------------------ WITH LOOP --------------------------------------------->
ui open file("Proxies:", #proxies)
clear table(&proxy table)
clear table(&current proxy table)
create table from file(#proxies, &proxy table)
set(#row, 0, "Global")
loop(15) {
    change proxy("{$table cell(&proxy table, #row, 0)}:{$table cell(&proxy table, #row, 1)}")
    set proxy credentials($table cell(&proxy table, #row, 2), $table cell(&proxy table, #row, 3))
    wait(1)
    navigate("http://www.whatsmyip.org/", "Wait")
    wait(5)
    increment(#row)
    wait(1)
}
<!--------------------------------------------Auto Detect Proxy Format------------------------------------->
clear table(&Proxy Table)
ui open file("Proxies:", #Proxy File)
create table from file(#Proxy File, &Proxy Table)
set(#Proxy Row, 0, "Global")
if($comparison($table total columns(&Proxy Table), "=", 4)) {
    then {
        change proxy("{$table cell(&Proxy Table, #Proxy Row, 0)}:{$table cell(&Proxy Table, #Proxy Row, 1)}")
        set proxy credentials($table cell(&Proxy Table, #Proxy Row, 2), $table cell(&Proxy Table, #Proxy Row, 3))
    }
}
if($comparison($table total columns(&Proxy Table), "=", 2)) {
    then {
        change proxy("{$table cell(&Proxy Table, #Proxy Row, 0)}:{$table cell(&Proxy Table, #Proxy Row, 1)}")
    }
}
increment(#Proxy Row)
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...