Jump to content
UBot Underground

Scraping multi pages in a loop with NO next page button?


Recommended Posts

Yes, the ol' confederate general has many questions and I do appreciate the continued support.

 

I'm trying to scrape some domains on a site that has them listed in single colums of 30 spread out through 20 pages. Formated like page (1) (2) (3) etc etc but there is not a next page button so how do I scrape these 20 pages in a loop? I'd hate to have to code each page..ugh

Link to post
Share on other sites

Hi,

 

When you go from page to page does the URL have information as to what page is being displayed?

 

If it does then maybe you could:

loop

navigate to url?displaywhateverpage=x

scrape information

 

Kevin

Link to post
Share on other sites

Maybe my Example with Google brings ya a light

 

navigate("http://www.google.com", "Wait")
type text(<name="q">, "ubot", "Standard")
click(<name="btnK">, "Left Click", "No")
wait for browser event("Page Loaded", 5)
add list to list(%nexturl, $scrape attribute(<class="fl">, "fullhref"), "Delete", "Global")

Link to post
Share on other sites

Showing a couple different ways to do it.

 

set(#var, 1, "Global")
comment("scrape the number of pages or a set ui element or number of pages")
loop(#pages) {
   navigate("http://www.ubotstudio.com/resources?page={#var}", "Wait")
   increment(#var)
}
divider
divider
set(#var, 1, "Global")
comment("scrape the number of pages or a set ui element or number of pages")
loop(#pages) {
   click(<innertext="( {#var} )">, "Left Click", "No")
   increment(#var)
}

 

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