Jump to content
UBot Underground

I'm trying to figure out, how to setup a loop according to a value shown on a page.


Recommended Posts

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 ?

Link to post
Share on other sites

Ahhh this makes sense !! Thanks

I got the scraping part done so far as i got the value i want.

 

I'll try this ! Thanks TJ

Link to post
Share on other sites

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

Link to post
Share on other sites

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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...