Otts 4 Posted January 2, 2014 Report Share Posted January 2, 2014 Hi, how would i be able to multi thread X amount of threads with X amount of times to sign up for accounts on X site. I have used a format from ubotdev, and works fine but how do i change proxies each time. Rotate through my proxy list each time? Is it the same as non multithreading? Regards Quote Link to post Share on other sites
giganut 109 Posted January 2, 2014 Report Share Posted January 2, 2014 Take a look at this, hope it helps you out clear table(&proxy table) clear table(&accounts table) clear table(¤t proxy table) create table from file(#proxies, &proxy table) create table from file(#accounts file, &accounts table) set(#account row, 0, "Global") set(#row, 0, "Global") set(#Tcount, 0, "Global") set(#num Threads, 0, "Global") set(#pics liked, 0, "Global") loop(#Loopcnt) { loop while($comparison(#num Threads, ">=", #MaxThreads)) { wait(1) } InitiateThreading() } define InitiateThreading { increment(#num Threads) increment(#Tcount) Routine2thread() } define Routine2thread { set(#local row, #row, "Local") increment(#row) set(#local account row, #account row, "Local") increment(#account row) thread { in new browser { if($file exists(#proxies)) { then { change proxy("{$table cell(&proxy table, #local row, 0)}:{$table cell(&proxy table, #local row, 1)}") set proxy credentials($table cell(&proxy table, #local row, 2), $table cell(&proxy table, #local row, 3)) wait(2) } else { } } type text(<username field>, $table cell(&accounts table, #local account row, 0), "Standard") type text(<password field>, $table cell(&accounts table, #local account row, 1), "Standard") decrement(#num Threads) } } } ui open file("Accounts:", #accounts file) ui open file("Proxies:", #proxies) ui drop down("Max. Threads to Open", "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,68,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,131,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,168,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,231,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,268,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300", #MaxThreads) ui text box("Loop Count", #Loopcnt) ui stat monitor("Total Threads Created", #Tcount) ui stat monitor("No. of Open Threads", #num Threads) 2 Quote Link to post Share on other sites
Otts 4 Posted January 2, 2014 Author Report Share Posted January 2, 2014 Take a look at this, hope it helps you out clear table(&proxy table) clear table(&accounts table) clear table(¤t proxy table) create table from file(#proxies, &proxy table) create table from file(#accounts file, &accounts table) set(#account row, 0, "Global") set(#row, 0, "Global") set(#Tcount, 0, "Global") set(#num Threads, 0, "Global") set(#pics liked, 0, "Global") loop(#Loopcnt) { loop while($comparison(#num Threads, ">=", #MaxThreads)) { wait(1) } InitiateThreading() } define InitiateThreading { increment(#num Threads) increment(#Tcount) Routine2thread() } define Routine2thread { set(#local row, #row, "Local") increment(#row) set(#local account row, #account row, "Local") increment(#account row) thread { in new browser { if($file exists(#proxies)) { then { change proxy("{$table cell(&proxy table, #local row, 0)}:{$table cell(&proxy table, #local row, 1)}") set proxy credentials($table cell(&proxy table, #local row, 2), $table cell(&proxy table, #local row, 3)) wait(2) } else { } } type text(<username field>, $table cell(&accounts table, #local account row, 0), "Standard") type text(<password field>, $table cell(&accounts table, #local account row, 1), "Standard") decrement(#num Threads) } } } ui open file("Accounts:", #accounts file) ui open file("Proxies:", #proxies) ui drop down("Max. Threads to Open", "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,68,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,131,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,168,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,231,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,268,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300", #MaxThreads) ui text box("Loop Count", #Loopcnt) ui stat monitor("Total Threads Created", #Tcount) ui stat monitor("No. of Open Threads", #num Threads)Ive added this in, when i load my accounts and navigate to a login page and change the elements for user&pass, i get a table error for the routine? Quote Link to post Share on other sites
giganut 109 Posted January 2, 2014 Report Share Posted January 2, 2014 You have to use a .csv file for the accounts and proxies with a delimiter set to a colon : Accounts.csv = username:password username:password username:password Proxies.csv = IP:PORT:USER:PASS IP:PORT:USER:PASS IP:PORT:USER:PASS Quote Link to post Share on other sites
Otts 4 Posted January 2, 2014 Author Report Share Posted January 2, 2014 You have to use a .csv file for the accounts and proxies with a delimiter set to a colon : Accounts.csv =username:passwordusername:passwordusername:password Proxies.csv =IP:PORT:USER:PASSIP:PORT:USER:PASSIP:PORT:USER:PASSMy windows computer doesn't have .csv applications Quote Link to post Share on other sites
giganut 109 Posted January 2, 2014 Report Share Posted January 2, 2014 It's just a file extension that stands for (comma separated values) you probably can't see them because you don't have your computer set to show file extensions here is how you can get your computer to show them in windows 7. http://windows.microsoft.com/en-US/windows/show-hide-file-name-extensions#show-hide-file-name-extensions=windows-vista (Recommended)To open a .csv file all you have to do is right click the document and select edit in notepad. (Not Recommended) install open office or microsoft office and open it with that. What is a .csv file? Read this.http://en.wikipedia.org/wiki/Comma-separated_values Quote Link to post Share on other sites
Otts 4 Posted January 2, 2014 Author Report Share Posted January 2, 2014 It's just a file extension that I belive stands for (comma separated values) you probablycan't see them because you don't have your computer set to show file extensions hereis how you can get your computer to show them in windows 7http://windows.microsoft.com/en-US/windows/show-hide-file-name-extensions#show-hide-file-name-extensions=windows-vista http://en.wikipedia.org/wiki/Comma-separated_valuesi dont have excell Quote Link to post Share on other sites
giganut 109 Posted January 2, 2014 Report Share Posted January 2, 2014 I added more to the comment above please reload the page and re read Quote Link to post Share on other sites
Otts 4 Posted January 2, 2014 Author Report Share Posted January 2, 2014 My current script is multithreaded but it types in username:password into the email box, how do i split the table so user=email and pass=pass Quote Link to post Share on other sites
giganut 109 Posted January 2, 2014 Report Share Posted January 2, 2014 in ubot at the top left you will see an option called bot, click that and in the box that appears enter a colon replacing the comma to set the bots delimiter to a colon and click ok, then try and run the script. Quote Link to post Share on other sites
Otts 4 Posted January 2, 2014 Author Report Share Posted January 2, 2014 in ubot at the top right you will see an option called bot, click that and in the box that appears enter a colon replacing the comma to set the bots delimiter to a colon and click ok then try and run the script.omg thanks, and its the top left lol! why didnt anyone ever tell me that?? now how do i assign proxies to each different account or to rotate? Quote Link to post Share on other sites
giganut 109 Posted January 2, 2014 Report Share Posted January 2, 2014 the way this script works is the account on line one and the proxy on line one will be used at the same time, and so on and so forth down the files, for example after the account on line one has been made with the proxy on line one, they will both increment at the same time till the end of the file. Account.csv Proxy.csv 1.username:password = 1.IP:PORT:USER:PASS 2.username:password = 2.IP:PORT:USER:PASS 3.username:password = 3.IP:PORT:USER:PASS 4.username:password = 4.IP:PORT:USER:PASS Quote Link to post Share on other sites
Otts 4 Posted January 3, 2014 Author Report Share Posted January 3, 2014 Does anyone have any start scripts I can use as a template? Quote Link to post Share on other sites
giganut 109 Posted January 3, 2014 Report Share Posted January 3, 2014 Take a look at this http://www.ubotstudio.com/forum/index.php?/topic/15681-a-command-to-initiate-script-like-the-run-button/ Quote Link to post Share on other sites
Otts 4 Posted January 3, 2014 Author Report Share Posted January 3, 2014 I've looked at that but I don't see how that relates to the multithreading and typing text from a whole list user:pass Quote Link to post Share on other sites
Otts 4 Posted January 4, 2014 Author Report Share Posted January 4, 2014 Bumping Quote Link to post Share on other sites
Pete 121 Posted January 4, 2014 Report Share Posted January 4, 2014 OMG you been on this for months http://www.ubotstudio.com/forum/index.php?/topic/14800-how-do-i-rotate-proxies-in-ubot/Suggest you sent your script to some one to look atorhttps://www.google.co.uk/search?output=search&sclient=psy-ab&q=site:http:%2F%2Fwww.ubotstudio.com%2Fforum%2F+change++proxy&oq=site:http:%2F%2Fwww.ubotstudio.com%2Fforum%2F+change++proxy&gs_l=hp.12...2914.2914.0.4193.1.1.0.0.0.0.0.0..0.0....0...1c..32.psy-ab..1.0.0.MlzDJn2bmcc&pbx=1&bav=on.2,or.r_qf.&bvm=pv.xjs.s.en_US.EeLgqkzqnSg.O&ech=1&psi=ACLIUtq7JrPY0QXInIG4Dg.1388847620882.3&emsg=NCSR&noj=1&ei=ACLIUtq7JrPY0QXInIG4Dg Quote Link to post Share on other sites
Otts 4 Posted January 4, 2014 Author Report Share Posted January 4, 2014 OMG you been on this for months http://www.ubotstudio.com/forum/index.php?/topic/14800-how-do-i-rotate-proxies-in-ubot/Suggest you sent your script to some one to look atorhttps://www.google.co.uk/search?output=search&sclient=psy-ab&q=site:http:%2F%2Fwww.ubotstudio.com%2Fforum%2F+change++proxy&oq=site:http:%2F%2Fwww.ubotstudio.com%2Fforum%2F+change++proxy&gs_l=hp.12...2914.2914.0.4193.1.1.0.0.0.0.0.0..0.0....0...1c..32.psy-ab..1.0.0.MlzDJn2bmcc&pbx=1&bav=on.2,or.r_qf.&bvm=pv.xjs.s.en_US.EeLgqkzqnSg.O&ech=1&psi=ACLIUtq7JrPY0QXInIG4Dg.1388847620882.3&emsg=NCSR&noj=1&ei=ACLIUtq7JrPY0QXInIG4DgMultithreading changing proxies is different Quote Link to post Share on other sites
UBotDev 276 Posted January 4, 2014 Report Share Posted January 4, 2014 I've added an example here, I think it should help you to understand how threading with proxies works. To get it working for your project you just need to replace scraper with your custom code... Quote Link to post Share on other sites
Otts 4 Posted January 4, 2014 Author Report Share Posted January 4, 2014 I've added an example here, I think it should help you to understand how threading with proxies works. To get it working for your project you just need to replace scraper with your custom code...Thanks mate, How do i use next list item in multithreading so all threads dont use the same account at once? Quote Link to post Share on other sites
sanampuri 0 Posted January 28, 2014 Report Share Posted January 28, 2014 Awesome Post and many of them get's their Solution and Few of them gets Confused (Like Me) and get's Solution. Quote Link to post Share on other sites
UBotDev 276 Posted January 28, 2014 Report Share Posted January 28, 2014 Thanks mate, How do i use next list item in multithreading so all threads dont use the same account at once? Didn't saw your question, sorry...you use next list item outside the thread, and pass account row (easier, similar to how I pass in "#PROXY ROW" in example) or all account details to the thread. Quote Link to post Share on other sites
sanampuri 0 Posted January 28, 2014 Report Share Posted January 28, 2014 Can you Show me your Simple Code So that i can Help easily. Quote Link to post Share on other sites
naveensingh 0 Posted August 19, 2017 Report Share Posted August 19, 2017 Nice Post, Was searching this from last few days. Nice Solution 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.