LoWrIdErTJ - BotGuru 904 Posted June 27, 2012 Report Share Posted June 27, 2012 Below you will find example code of what im doing to verify emails right now with hotmail. I first set the used threads to 0make sure my proxy is set to none, or a proxy your wanting to use I then Connect to hotmail-create table from emails Clear list, and set my variable to position 0 Start my loop process for total number of emails in the table In there regex looking for my verification link I then start navigating to those links using threads, to process them faster with no limit, since it will only navigate, and then kill off that browser after it loads How to use the below codeCopy all code in first block and paste into your bot Copy all code in second block and paste into your bot Under custom commands on the left side in ubot, drag over the one for "email verification"where you want it to run. make sure to adjust as seen in below image so that it pulls your correct verification link your looking forhttp://content.screencast.com/users/lowridertj/folders/Snagit/media/7a37397a-cc3a-4acf-a312-11f61ad02fe1/06.28.2012-06.png Need to know more on how to change it please watch this example video ignore the error at the end it has been reported.http://screencast.com/t/0Tcy2wS2FZ attached bot is for standard users. create table from file("C:\\Users\\Tj Development\\Desktop\\accounts.csv", &accounts) set(#email, $table cell(&accounts, 0, 0), "Global") set(#email pass, $table cell(&accounts, 0, 1), "Global") set(#proxy, $table cell(&accounts, 0, 2), "Global") define email verification { set(#used threads, 0, "Global") change proxy(#proxy) connect to mail server("POP3 With SSL", #email, #email pass, "pop3.live.com", 995) { create table from emails(&emails) } clear list(%verification emails) set(#temp row, 0, "Global") loop($table total rows(&emails)) { add item to list(%verification emails, $find regular expression($list from text($table cell(&emails, #temp row, 4), $new line), "http://www.facebook.com/c.php\\?code=.*"), "Delete", "Global") increment(#temp row) } loop($list total(%verification emails)) { loop while($comparison(#used threads, ">=", #num threads)) { wait(1) } increment(#used threads) process emailst() } wait(30) load html("<center><h1>Process Emails Complete!</h1></center>") wait(3) } email verification() define process emailst { thread { in new browser { navigate($next list item(%verification emails), "Wait") wait for browser event("Everything Loaded", "") wait for element(<innertext=w"Your e-mail address has been confirmed. *">, 10, "Appear") decrement(#used threads) } } } Hope you enjoy..hotmail facebook verification.ubot 7 Quote Link to post Share on other sites
JohnnyVegas 2 Posted June 27, 2012 Report Share Posted June 27, 2012 I take it, we still have to setup a command at the beginning to point to where our list of hotmail email, passwords, and proxies are correct? Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted June 28, 2012 Author Report Share Posted June 28, 2012 thats correct how you supply your login details to the command you still need to setup. Quote Link to post Share on other sites
JohnnyVegas 2 Posted June 28, 2012 Report Share Posted June 28, 2012 thats correct how you supply your login details to the command you still need to setup. Still having problems with the script. I believe there is something that needs to change within the process email list command, as the bot stops after processing the email verification command. I get the error: You have exceeded the range of the list. Here is what I have: create table from file("C:\\Users\\Johnny\\Desktop\\Automation Tasks\\uBot Studio\\Facebook Hotmail Account Verifier\\accounts.csv", &accounts) set(#email, $table cell(&accounts, 0, 0), "Global") set(#email pass, $table cell(&accounts, 0, 1), "Global") set(#proxy, $table cell(&accounts, 0, 2), "Global") define email verification { set(#used threads, 0, "Global") change proxy(#proxy) connect to mail server("POP3 With SSL", #email, #email pass, "pop3.live.com", 995) { create table from emails(&emails) } clear list(%verification emails) set(#temp row, 0, "Global") loop($table total rows(&emails)) { clear list(%break down email) add list to list(%break down email, $list from text($table cell(&emails, #temp row, 4), $new line), "Delete", "Global") set(#break down temp, 0, "Global") loop($list total(%break down email)) { if($contains($list item(%break down email, #break down temp), "Action Required: Confirm Your Facebook Accountâ€Â")) { then { add item to list(%verification emails, $list item(%break down email, #break down temp), "Delete", "Global") } else { } } increment(#break down temp) } increment(#temp row) } loop($list total(%verification emails)) { loop while($comparison(#used threads, ">=", #num threads)) { wait(1) } increment(#used threads) process emailst() } wait(30) load html("<center><h1>Process Emails Complete!</h1></center>") wait(3) } email verification() define process emailst { thread { in new browser { navigate($next list item(%verification emails), "Wait") wait for browser event("Everything Loaded", "") wait for element(<innertext=w"Your e-mail address has been confirmed. *">, 10, "Appear") decrement(#used threads) } } } process emailst() Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted June 28, 2012 Author Report Share Posted June 28, 2012 updated original code at the top, and have sent you a working copy as well. Quote Link to post Share on other sites
steviewonder 0 Posted August 22, 2012 Report Share Posted August 22, 2012 when I try to grab the .ubot file I get this error : [#10171] You do not have permission to view this attachment. , whats going on ? Seems the verifying aint working out for me either so I have to do it manually as well ... Quote Link to post Share on other sites
TheMentalist 4 Posted September 11, 2012 Report Share Posted September 11, 2012 So basically, if I want this to verify emails for various sites, I will need to code the verify address for each one... as well as the landing page confirmation? Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted September 11, 2012 Author Report Share Posted September 11, 2012 that is correct. can do so by adding in if($contains(domainname) than do this etc... for instance i was helping someone recently with a twitter account verificaiton process and was working with other sites as well. Once you ahve all the verification links in a list, have it loop through that list and process the if commands.and in those commands if the site requires you do further things like login how twitter does when following the link you can do so. and in the add item to list, change to add list to list works better with same regex in it.and add a new add list to list for each site verification type urls your needing. so it compiles it together for you, or you can make new lists whicher you prefer Quote Link to post Share on other sites
TheMentalist 4 Posted September 12, 2012 Report Share Posted September 12, 2012 Um... you lost me there boss. Where would you actually set the if statements? It seems like you'd but those in right before the navigate in the process emailst... correct? I'm still trying to get a handle on the regex's too... Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted September 12, 2012 Author Report Share Posted September 12, 2012 it would replace the navigate node, and place in your if statements there, to process each type of link contiaining a domain a certain way Quote Link to post Share on other sites
TheMentalist 4 Posted September 13, 2012 Report Share Posted September 13, 2012 I seem to be having an issue actually finding the emails... I'm looking for: http://dashboard.bloglines.com/confirm/email/2daee3ff220e57635df0fac2b5a21bc2019b5beb?url=http://dashboard.bloglines.com And in the regular expression, I entered: http://dashboard.bloglines.com/confirm/email/.* My full code here... lots of comments so I can tell what's going on: ui html panel("<html> <body> <textarea id=\"log\" name=\"log\" variable=\"#log\" fillwith=\"value\" cols=\"40\" rows=\"15\"></textarea> </body> </html>", 300) set(#log, "Starting...</br>", "Global") set(#email, "JeanVanDamme@hotmail.com", "Global") set(#emailPass, "KickboxerNum1", "Global") define EmailVerification { set(#log, $append line to text(#log, "Inside EmailVerification"), "Global") set(#usedThreads, 0, "Global") connect to mail server("POP3 With SSL", #email, #emailPass, "pop3.live.com", 995) { create table from emails(&emails) } set(#log, $append line to text(#log, "Scrapped Emails"), "Global") clear list(%verificationEmails) set(#tempRow, 0, "Global") set(#log, $append line to text(#log, "Starting Loop Looking for Emails to Click"), "Global") loop($table total rows(&emails)) { add item to list(%verificationEmails, $find regular expression($list from text($table cell(&emails, #tempRow, 4), $new line), "http://dashboard.bloglines.com/confirm/email/.*"), "Delete", "Global") set(#log, $append line to text(#log, "Found line: {#tempRow}- {$table cell(&emails, #tempRow, 4)}"), "Global") increment(#tempRow) } set(#log, $append line to text(#log, "Out of Scrapeing Routine"), "Global") set(#log, $append line to text(#log, "Inside 2nd Loop"), "Global") set(#tempCounter, 0, "Global") loop($list total(%verificationEmails)) { increment(#tempCounter) set(#log, $append line to text("#log-", "{#tempCounter}{$list item(%verificationEmails, #tempCounter)}"), "Global") } set(#log, "Captured - {$append line to text(#log, "About to wait 30 seconds")}", "Global") wait(30) load html("<center><h1>Process Emails Complete!</h1></center>") wait(3) } EmailVerification() define ProcessEmailList { thread { in new browser { navigate($next list item(%verificationEails), "Wait") wait for browser event("Everything Loaded", "") wait for element(<innertext=w"Your e-mail address has been confirmed. *">, 10, "Appear") decrement(#usedThreads) } } } Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted September 13, 2012 Author Report Share Posted September 13, 2012 use this regex http:\/\/dashboard\.bloglines\.com\/confirm\/email\/\.* 1 Quote Link to post Share on other sites
TheMentalist 4 Posted September 13, 2012 Report Share Posted September 13, 2012 Thanks BotGuru.... So... it looks like you put a \ in front of the . / correct? and then a \.* for the wildcard? Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted September 13, 2012 Author Report Share Posted September 13, 2012 correct its to exscape the forward slashes, and the periods. Quote Link to post Share on other sites
TheMentalist 4 Posted September 13, 2012 Report Share Posted September 13, 2012 Thanks buddy! I appreciate the help! That seemed to do the trick... SORT OF... When I plugged that in... it DID find the email... but it only included PART of the URL... From To activate your account you need to confirm your e-mail address by clicking on this link: http://dashboard.bloglines.com/confirm/email/2daee3ff220e57635df0fac2b5a21bc2019b5beb?url=http%3A%2F%2Fdashboard.bloglines.com It only grabbed: http://dashboard.bloglines.com/confirm/email/ What am I doing wrong? Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted September 13, 2012 Author Report Share Posted September 13, 2012 try this how its setup seems to be workin screenshot: http://content.screencast.com/users/lowridertj/folders/Snagit/media/e2ee9812-1420-4a93-8d4b-b5d44ce19819/09.13.2012-19.png Quote Link to post Share on other sites
a2mateit 395 Posted October 11, 2012 Report Share Posted October 11, 2012 Hey TJ, What regex would I use if all of the confirmation emails contain /user/verify/? The url's are all different, but they all contain "/user/verify/" I tried using:*/user/verify/* But it's not working. Any help would be appreciated. Thanks Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted October 11, 2012 Author Report Share Posted October 11, 2012 give me an actual verification email to look at ill build the regex code for you Quote Link to post Share on other sites
a2mateit 395 Posted October 11, 2012 Report Share Posted October 11, 2012 Thanks, Here are a couple of different examples of what the urls look like. http://www.addacafe.com/index.php?do=/user/verify/link_e1c2cf59e83c6864c259c68fb62285598a7a69cc6042614323/ http://afronature.com/user/verify/link_338a4e30576d6e9e15010e365870a81a6024ddff87a090be00/ So as you can see the only constant are "http://" and "user/verify/". TIA Quote Link to post Share on other sites
a2mateit 395 Posted October 11, 2012 Report Share Posted October 11, 2012 Hey TJ, I am using the following regex:http:\/\/.*\/user\/verify\/\.* But it is pulling this: http://www.10-24p.com/index.php?do=/user/verify/link_b0335efd875acbf557df27fb6c206660cd47050e74ef12c16b/%22%3Ehttp://www.10-24p.com/index.php?do=/user/verify/ Instead of just the basic url which is this: http://www.10-24p.com/index.php?do=/user/verify/link_b0335efd875acbf557df27fb6c206660cd47050e74ef12c16b Any idea what I am doing wrong here? Still trying to wrap my head around regex and I'm pulling my hair out here. Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted October 12, 2012 Author Report Share Posted October 12, 2012 try this http:\/\/(.*?)\/verify\/[a-zA-Z0-9%/:.?=_-]{0,200} Quote Link to post Share on other sites
Legend 181 Posted October 12, 2012 Report Share Posted October 12, 2012 We need a good regex tutorial for UBot... I know there are a lot of regex tutorials out there, but we need one just for UBot... I can hold my own with regex but it'd be great if one of the regex pros (TJ, Kevin, Frank, Kreatus, et. al.) could put something together (something with a lot of example code to work off of)... 1 Quote Link to post Share on other sites
VaultBoss 310 Posted October 12, 2012 Report Share Posted October 12, 2012 We need a good regex tutorial for UBot... loop(10) {+1) Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted October 12, 2012 Author Report Share Posted October 12, 2012 like a regex cheat sheet? http://www.addedbytes.com/cheat-sheets/download/regular-expressions-cheat-sheet-v1.png 1 Quote Link to post Share on other sites
AutomationNinja 194 Posted February 10, 2013 Report Share Posted February 10, 2013 I have a real simple url I am trying to pull out using this but I keep getting a blank %verification emails list http://www.nameofthesite.com/members/?username=.* Shouldn't that work? 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.