AutomationNinja 194 Posted January 5, 2013 Report Share Posted January 5, 2013 I am trying to scrape a 7 digit numerical password.Example:Password: 9938272 I am using add item to listfind regular expression^(Password:\s\s)[^+]Am I close? Quote Link to post Share on other sites
pftg4 102 Posted January 5, 2013 Report Share Posted January 5, 2013 add list to list list from text : delimiter list position 1 no regex needed Quote Link to post Share on other sites
AutomationNinja 194 Posted January 5, 2013 Author Report Share Posted January 5, 2013 Never thought of that. There is actually more text involved and : comes up 3 times. Quote Link to post Share on other sites
pftg4 102 Posted January 5, 2013 Report Share Posted January 5, 2013 even easier set(#password, $substring("Password: 9938272", 10, 7), "Global") give me the whole thing Pftg4 Quote Link to post Share on other sites
AutomationNinja 194 Posted January 5, 2013 Author Report Share Posted January 5, 2013 I have scraped an email to a %list.add list to list (%email, $scrape attribute($element offset(<tagname="pre">, 0), "innertext"), "Delete", "Global")add item to list(%password, $find regular expression(%email, "Delete",Global") Quote Link to post Share on other sites
pftg4 102 Posted January 5, 2013 Report Share Posted January 5, 2013 i need to see it pftg4 Quote Link to post Share on other sites
AutomationNinja 194 Posted January 5, 2013 Author Report Share Posted January 5, 2013 ==================================================You or someone pretending to be you tried to join our website.This is a welcome email to confirm you wish to join.==================================================Hi RobertThank you for signing up to EDITED! You MUST login right awayto confirm your account! Simply login at the URL below:Your Username: robertYour Password: 7922374Login for the first time!==> http://www.EDITED.COMIf you don't login in a few days, your account will be automaticallycanceled. This prevents people from signing other people up when theydon't want it.If you changed your mind, or you never wanted to join in the firstplace, you can ignore this email (and a reminder email in a few days)or you can click the cancel link at the bottom of this email.EDITEDhttp://www.EDITED.com===================================================================Your account was not setup yet. If it was a mistake, or to say NO,click the link below to delete your account immediately===================================================================To CANCEL your account click the link below==> http://www.EDITED.COMEDITED Quote Link to post Share on other sites
pftg4 102 Posted January 5, 2013 Report Share Posted January 5, 2013 OK here you go you of course don't need the first node this will be your varaible or list item cell etc just for demo purposes set(#test, " ================================================== You or someone pretending to be you tried to join our website. This is a welcome email to confirm you wish to join. ================================================== Hi Robert Thank you for signing up to EDITED! You MUST login right away to confirm your account! Simply login at the URL below: Your Username: robert Your Password: 7922374 Login for the first time! ==> http://www.EDITED.COM If you don\'t login in a few days, your account will be automatically canceled. This prevents people from signing other people up when they don\'t want it. If you changed your mind, or you never wanted to join in the first place, you can ignore this email (and a reminder email in a few days) or you can click the cancel link at the bottom of this email. EDITED http://www.EDITED.com =================================================================== Your account was not setup yet. If it was a mistake, or to say NO, click the link below to delete your account immediately =================================================================== To CANCEL your account click the link below ==> http://www.EDITED.COM EDITED", "Global") set(#soultion, $substring(#test, $add($find index(#test, "Password:"), 10), 7), "Global") Pftg4 1 Quote Link to post Share on other sites
AutomationNinja 194 Posted January 5, 2013 Author Report Share Posted January 5, 2013 nice - can't wait to try it out. & Thanks! Quote Link to post Share on other sites
pftg4 102 Posted January 5, 2013 Report Share Posted January 5, 2013 np pftg4 Quote Link to post Share on other sites
pftg4 102 Posted January 5, 2013 Report Share Posted January 5, 2013 did you understand what i did can you read it??? Quote Link to post Share on other sites
AutomationNinja 194 Posted January 5, 2013 Author Report Share Posted January 5, 2013 Yup got it. Nice. That is what I love about Ubot. Not a day goes by that I don't learn something. Quote Link to post Share on other sites
pftg4 102 Posted January 5, 2013 Report Share Posted January 5, 2013 when i find the word password: it finds it from the beginning so i have to add 10 characters (password: is 10) so it adds it to right hand side glad you got it pftg4 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.