Jump to content
UBot Underground

If function?


Recommended Posts

As of now I have the loop number as a variable reliant on a difference of a scraped position divided by 30 under the math.ceil() javascript. Works great. But sometimes there are less than 30 results to a page, so it stops. What should I tell script? The number I scrape is between two strong tags, so if I use if and search page, I was thinking I could tell it to search for <strong>x</strong> where x is any number, is that possible?

Link to post
Share on other sites

One way is to grab the page as a whole into a variable using the document/document text variable. You could then parse through it with a 'find regular expression' and count the number of entries you get into a list.

 

But that may be way overboard. Sometimes the simplest answers are the very best - look at the problem a different way. This is what makes a great programmer!!

 

PM me if you get really stuck.

 

Frank

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...