Jump to content
UBot Underground

How to choose random proxy from txt?


Recommended Posts

Hi there,

 

There is also the random list item function. Place your proxies in a list and use the random list item function to choose random proxies for use.

You can find it under the variable functions.

Link to post
Share on other sites

Hi there,

 

There is also the random list item function. Place your proxies in a list and use the random list item function to choose random proxies for use.

You can find it under the variable functions.

 

Ok thanks, I'll give it another try..

Link to post
Share on other sites

personally I find saving to a table works better.

 

create table from file("scrape.txt", &scraped)

set(#site1, $table cell(&scraped, $rand(1, 20), 0), "Global")

wait(3)

  • Like 1
Link to post
Share on other sites

Hi,

 

Sample code using random list item. LillyT suggestion.

 

clear list(%proxies)
add list to list(%proxies, $list from file("C:\\download\\proxy-list.txt"), "Delete", "Global")
set(#proxytouse, $random list item(%proxies), "Global")

Kevin

 

To use $rand

set(#proxytouse, $list item(%proxies, $rand(0, $subtract($list total(%proxies), 1))), "Global")

Link to post
Share on other sites
  • 6 years later...

Can someone help me with the same code but for ExBrowser plugin

 

You can do it like this, replace the proxy 1 etc with your proxies:

 

clear list(%proxies)
add list to list(%proxies,$list from text("proxy 1
proxy 2
proxy 3",$new line),"Delete","Global")
plugin command("ExBrowser.dll", "ExBrowser Launcher", "Chrome", $random list item(%proxies), "")
Link to post
Share on other sites
  • 1 month later...

i am using this one liner

set(#proxy,$random list item($list from file("{$special folder("Application")}/proxy.txt")),"Global")

 

With this approach you will be loading the list from a file every time. It's better to load it into a list one time and then use that list.

Link to post
Share on other sites
  • 2 weeks later...

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