Jump to content
UBot Underground

Search For Particular Keyword and click on it


Recommended Posts

I am making a bot in which i have to search for a word and click on the link associated with that.

There is no fix site as the sites are loaded by the user.

The Work can be anywhere on the page.

It may have a link associated with that or may not

 

Please Provide some hints.

Edited by utsavat
Link to post
Share on other sites

Here's an example, wont work in all circumstances. The keyword has a wild card before and after, so it will hit pretty much pretty much everything with the keyword in it. On this one it'll hit the "Login ito Your Account" at the bottom of the page. 

 

set(#keyword, "Login", "Global")
navigate("http://ubotstudio.com", "Wait")
if($search page(#keyword)) {
    then {
        click(<innertext=w"*{#keyword}*">, "Left Click", "No")
    }
    else {
    }
}
Link to post
Share on other sites
What if the word is repeated more than once in the page and all those words are links ? Which link should it click ?

That is what also concerns me

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