Jump to content
UBot Underground

SOLVED - Click Random Serp Link


Recommended Posts

Hi guys,

 

Is there a way to just randomly click a link on any given page... Like a search engine results page?

 

If you know how - Please take a moment to detail it for me. (very appreciated).

 

Clarification:

 

I need it to actually click on a random link on the page rather than scrape a list of urls and navigate to one randomly. - I actually need the click.

 

 

 

I figured it out.... here it is in case anyone else ever needs it...

 

set(#randomlink, $scrape attribute(<outerhtml=w"<a href=\"*\" h=\"ID=SERP,*.1\">*</a>">, "innertext"), "Global")
    add list to list(%randomlist, $list from text(#randomlink, $new line), "Delete", "Global")
    set(#randomlink, $nothing, "Global")
    set list position(%randomlist, 0)
    set(#randomlink, $random list item(%randomlist), "Global")
    click(<innertext=#randomlink>, "Left Click", "No")

 

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