chowhan 0 Posted August 12, 2012 Report Share Posted August 12, 2012 Hi, i have a bot which uses a .csv file and pull the proxy data from the table cells but i need the boot to use a text file and this format. IP:PORT:USERNAME:PASSWORDIP:PORT:USERNAME:PASSWORDIP:PORT:USERNAME:PASSWORDIP:PORT:USERNAME:PASSWORDIP:PORT:USERNAME:PASSWORD can someone please explain a bit how that can be done? Thanks for your time. Regards Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted August 12, 2012 Report Share Posted August 12, 2012 add list to list (list from file) in your loop where you will be setting up the proxy for use..add list to list (list from text(list item (first list), ) where that will grab a line from the first list and break it down by : making 4 lines in this list. now use those list items to change proxy and set proxy credentials. Quote Link to post Share on other sites
chowhan 0 Posted August 12, 2012 Author Report Share Posted August 12, 2012 Hi, i am trying this but somehow its not coming right in my mind. can you explain a bit more please. thanks is this right way? add list to list(%proxy data, $list from text($list item(%ip, 0), ":"), "Delete", "Global") Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted August 12, 2012 Report Share Posted August 12, 2012 working without issue.. clear list(%proxy list) add list to list(%proxy list, $list from file("path to file list here"), "Delete", "Global") set(#pos, 0, "Global") loop($list total(%proxy list)) { clear list(%break down) add list to list(%break down, $list from text($list item(%proxy list, #pos), ":"), "Delete", "Global") set proxy credentials($list item(%break down, 2), $list item(%break down, 3)) change proxy("{$list item(%break down, 0)}:{$list item(%break down, 1)}") navigate("http://whatismyip.com", "Wait") increment(#pos) } Quote Link to post Share on other sites
suntattood 0 Posted August 15, 2012 Report Share Posted August 15, 2012 This list actually work if you use in Elite Proxy Switcher. Does it work on other clients as well? Quote Link to post Share on other sites
brusacco 20 Posted August 21, 2012 Report Share Posted August 21, 2012 Load file into a TABLE, set table separator to ":".The just cycle the total-table-rows And use the table-row ... 0 for IP 1 for PORT ...etc... and the corresponding ROW ...Increment the ROW ... and loop again Thats how I do this. Quote Link to post Share on other sites
TheMentalist 4 Posted September 3, 2012 Report Share Posted September 3, 2012 Brusacco, Where do you set the table separator in Load file into table? I don't see that as an option... Quote Link to post Share on other sites
pftg4 102 Posted September 3, 2012 Report Share Posted September 3, 2012 top left options or tools can't remember Pftg4 Quote Link to post Share on other sites
TheMentalist 4 Posted September 4, 2012 Report Share Posted September 4, 2012 Hmm... so... I tried this: define SeperateProxyInfo { clear table(&FullProxyInfo) set(#pos, 0, "Global") loop($list total(%proxyList)) { clear list(%breakDown) add list to list(%breakDown, $list from text($list item(%proxyList, #pos), ":"), "Delete", "Global") set table cell(&FullProxyInfo, #pos, 0, $list item(%breakDown, 0)) set table cell(&FullProxyInfo, #pos, 1, $list item(%breakDown, 1)) set table cell(&FullProxyInfo, #pos, 2, $list item(%breakDown, 2)) set table cell(&FullProxyInfo, #pos, 3, $list item(%breakDown, 3)) increment(#pos) } set(#pos, 0, "Global") loop($table total rows(&FullProxyInfo)) { set(#proxylist, $append line to text(#proxylist, "{$table cell(&FullProxyInfo, #pos, 0)}|{$table cell(&FullProxyInfo, #pos, 1)}|{$table cell(&FullProxyInfo, #pos, 2)}|{$table cell(&FullProxyInfo, #pos, 3)}"), "Global") increment(#pos) } } And it works... EXCEPT... if the proxy doesn't need a password... I get all sorts of errors. Is there a way to around all the errors? Some check you can do first? Quote Link to post Share on other sites
TheMentalist 4 Posted September 12, 2012 Report Share Posted September 12, 2012 Fixed this.... 1. Grab the line to a list broken by ":" 2. write the total list to table col 0 3. write rest of data starting at col 1 4. When cycling through, check the first column... if it's a 2, then just set the proxy ip and port, if it's 4, then grab the password and username. This allows multiple types of proxies in the same file. 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.