Jump to content
UBot Underground

Recommended Posts

clear list(%click3)
add list to list(%click3,$scrape attribute(<outerhtml=w"<a href=\"*\" class=\"mybtn\" target=\"_blank\">Visit This Website</a>">,"fullhref"),"Don\'t Delete","Local")
loop($list total(%click3)) {
    navigate($next list item(%click3),"Wait")
    wait(5)
}

What's in %click3:

0 https://site.com

1 https://site2.com

2 https://site3.com

etc....

So i guess it scrapped alright? Now how come i get this:

"YOU HAVE EXCEEDED THE RANGE OF THE LIST"

Link to post
Share on other sites
  • 2 weeks later...

Hello, UBot starts to count from 0. Means your first list entry will be the entry number zero, not one.

This is why it exceeds the range of the list in your example. Try like this:

set(#counter,0,"Global")
clear list(%click3)
add list to list(%click3,$scrape attribute(<outerhtml=w"<a href=\"*\" class=\"mybtn\" target=\"_blank\">Visit This Website</a>">,"fullhref"),"Don\'t Delete","Local")
loop while($comparison(#counter,"< Less than",%click3)) {
    navigate($next list item(%click3),"Wait")
    wait(5)
    increment(#counter)
}

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