Jump to content
UBot Underground

Going To The Next Page... Including The Last Page


Recommended Posts

I am having a bit of problem navigating multiple pages on a site with UBot. I've used a loop that will look for class=next, and if it finds it it will run my scrape function. However, I am missing the last page of data. How would I visit all of the pages, INCLUDING the last page?

Link to post
Share on other sites

You can always run it one last time after your loop. You can set some kind of variable to make sure it doesn't scrape the last page twice in case there is some kind of accident like set the $url to be some variable and check it to make sure you don't get extra duplicate data if you are using a table.

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