newcoder 5 Posted June 17, 2013 Report Share Posted June 17, 2013 ok here i go..... i want to select an element and scrape its attribute and save. but hence element are more than 1.. and if i select it it selects the offeset. which works fine if browser is not hidden.. but when we hide the broswer and compile and run .exe that attribute scraping doesnt work anymore. now using regex its possible to scrap that i know. i try to study and still learning. now question is if i want to scrape this... ---> Search Phrase (2932) every time the page returns different number 2932 to any... like 1234 or 3242 so i want to scrape this 2932 or any number which exisit there.. how do i do ? is that scrape attribute if i select... and how can i insert regex in their. i try to search this forums and tutorials but didnt helped me how i can use in ubot. if anyone has any idea.. plz guide me. Quote Link to post Share on other sites
blumi40 222 Posted June 18, 2013 Report Share Posted June 18, 2013 [0-9]{1,9} 0-999999999[0-9]{4,9} 0000-999999999[0-9]{4,6} 0000-999999and so on Quote Link to post Share on other sites
VaultBoss 310 Posted June 18, 2013 Report Share Posted June 18, 2013 If the only thing that changes there is the number, instead of regex you could also use a wildcard Quote Link to post Share on other sites
newcoder 5 Posted June 19, 2013 Author Report Share Posted June 19, 2013 thanks for the info really helpful 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.