webpro 31 Posted June 8, 2013 Report Share Posted June 8, 2013 I'm trying to figure out, how to setup a loop according to a value shown on a page. Ex:Keep looping until you see 120 as number (this digit is a stat shown on a given page)In other words, i can't move on until it reaches 120 minimum but sometimes it encounters problems and the numbers don't fit anymore. So i just can't enter 120 in the loop. It could be 132, 144, 124 etc...that it needs to actually make it to 120. So i need to make sure it does the job/loop at last 120 What could be the logic behind this ? Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted June 8, 2013 Report Share Posted June 8, 2013 loop while ($not( innertext scrape attribute < 121)) { // this assumes it is going in order 1 on up to 120do things} Quote Link to post Share on other sites
webpro 31 Posted June 8, 2013 Author Report Share Posted June 8, 2013 Ahhh this makes sense !! ThanksI got the scraping part done so far as i got the value i want. I'll try this ! Thanks TJ Quote Link to post Share on other sites
webpro 31 Posted June 8, 2013 Author Report Share Posted June 8, 2013 Is this ok ? loop while($not($scrape attribute(<innertext="< 121 profiles">, "innertext"))) { } I ain't sure where to put the < 121 loop while($not($scrape attribute(<outerhtml=w"<font color=\"green\">* profiles</font>">, "innertext < 121"))) { } ????Trying, trying... loop while($not($scrape attribute(<innertext=w"* Profiles">, "innertext") < 121)) { } ????Thanks Quote Link to post Share on other sites
webpro 31 Posted June 10, 2013 Author Report Share Posted June 10, 2013 Just tried this and it doesn't work loop while($not($scrape attribute(<outerhtml=w"<font color=\"green\">* Profiles</font>">, "innertext")) < 121) { So it must have something to do with the way i'm using the code. I want to loop until it reaches at least 121 or anything higher than 121 Thanks Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted June 10, 2013 Report Share Posted June 10, 2013 be easier to PM, me with the page where the text is so that i can format some specific code that will work for you 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.