Jump to content
UBot Underground

how click or find a Url


Recommended Posts

Hello Hades999, 

Do you mean, (Dragging the link from the browser window over to the "Drag Commands Here". Then set the Element to a better one. Or Search Toolbox "Click".

navigate("https://www.google.com/?gws_rd=ssl#q=dogs""Wait")
wait(3)
click(<href="http://en.wikipedia.org/wiki/Dog">"Left Click""No")

There's training videos and tutorials with example codes all over the forum. Check them out.

Link to post
Share on other sites


ui text box("Total Loops", #Cycles)
ui open file("Proxy List:", #Proxies)
ui stat monitor("Proxy:", #Proxy)
ui stat monitor("Position:", "{#Proxy_Pos} / {$list total(%Proxies)}")
set(#Proxy_Pos, 0, "Global")
ui text box("Domain:", #domain)
ui text box("Search key:", #skey)
clear list(%Proxies)
add list to list(%Proxies, $list from file(#Proxies), "Delete", "Global")
clear list(%useragents)
add list to list(%useragents, $list from file("{$special folder("Desktop")}\\user-agent-list.txt"), "Delete", "Global")
loop(#Cycles) {
set(#position, $rand(0, 1729), "Global")
set user agent($list item(%useragents, #position))
clear cookies
Change Proxy()
navigate("http://www.google.com/search?q={#skey}&num=10&start=000", "Wait")
set(#INPUT Keyword, #domain, "Global")
clear list(%RESULTS)
add list to list(%RESULTS, $scrape attribute(<onmousedown=w"return rwt(this,'','','','1','*','','*','','',event)">, "href"), "Delete", "Global")
set(#RESULTS Row, 0, "Global")
loop($list total(%RESULTS)) {
if($contains($list item(%RESULTS, #RESULTS Row), #INPUT Keyword)) {
then {
click($element from text("<(href=\"{$list item(%RESULTS, #RESULTS Row)}\" AND onmousedown=w\"return rwt(this,*,event)\")>"), "Left Click", "No")
wait for browser event("Page Loaded", 10)
wait(25)
}
else {
}
}
increment(#RESULTS Row)
}
wait(1)
}
define Change Proxy {
if($comparison(#Proxy_Pos, ">=", $list total(%Proxies))) {
then {
set(#Proxy_Pos, 0, "Global")
}
else {
}
}
set(#Proxy, $list item(%Proxies, #Proxy_Pos), "Global")
change proxy(#Proxy)
wait(2)
increment(#Proxy_Pos)
}

 

Edited by hades999
Link to post
Share on other sites

It just deleted the whole top part of my post. GREAT. god.

I'm half asleep so I'm sure someone would have a better elements. But this works fine for me with "Dog" and domain: en.wikipedia.org/wiki/Dog
NOTE:
You'll need to add a if statement if you're going to stay with the current element's.

if("") {
    then {
    }
    else if("") {
    }
}
 

To find out if they have http https or www. As you'll see. Not all the URLS are http(s) some are, some or others. Need to use the above if to go threw and see if it matches unless you have the URL that's shown on google. Then you'll need to have the if, set the INput Key with the current format of the URL shown on google. 

ORRR 

Now that I think about it about to pass out on the keyboard, can just scrape the whole page, and IF the url is on the page, then have it click it. 
 

ui text box("Total Loops", #Cycles)
ui open file("Proxy List:", #Proxies)
ui stat monitor("Proxy:", #Proxy)
ui stat monitor("Position:", "{#Proxy_Pos} / {$list total(%Proxies)}")
set(#Proxy_Pos, 0, "Global")
ui text box("Domain:", #domain)
ui text box("Search key:", #skey)
clear list(%Proxies)
add list to list(%Proxies, $list from file(#Proxies), "Delete", "Global")
clear list(%useragents)
add list to list(%useragents, $list from file("{$special folder("Desktop")}\\user-agent-list.txt"), "Delete", "Global")
loop(#Cycles) {
    set(#position, $rand(0, 1729), "Global")
    set user agent($list item(%useragents, #position))
    clear cookies
    Change Proxy()
    navigate("http://www.google.com/search?q={#skey}&num=10&start=000", "Wait")
    set(#INPUT Keyword, #domain, "Global")
    clear list(%RESULTS)
    add list to list(%RESULTS, $scrape attribute(<cite,class="_Rm">, "fullhref"), "Delete", "Global")
    set(#RESULTS Row, 0, "Global")
    loop($list total(%RESULTS)) {
        if($contains($list item(%RESULTS, #RESULTS Row), #INPUT Keyword)) {
            then {
                click(<href=#INPUT Keyword>, "Left Click", "No")
                wait for browser event("Page Loaded", 10)
                wait(25)
            }
            else {
            }
        }
        increment(#RESULTS Row)
    }
    wait(1)
}
define Change Proxy {
    if($comparison(#Proxy_Pos, ">=", $list total(%Proxies))) {
        then {
            set(#Proxy_Pos, 0, "Global")
        }
        else {
        }
    }
    set(#Proxy, $list item(%Proxies, #Proxy_Pos), "Global")
    change proxy(#Proxy)
    wait(2)
    increment(#Proxy_Pos)
}
 

 
Regards,
HaHaItsJake

 

Edited by HaHaItsJake
Link to post
Share on other sites
  • 2 years later...

hi.

plz help update post.

not find Keyword Arabic.

and click domain and next page.

thank you.

 

It just deleted the whole top part of my post. GREAT. god.

I'm half asleep so I'm sure someone would have a better elements. But this works fine for me with "Dog" and domain: en.wikipedia.org/wiki/Dog
NOTE:
You'll need to add a if statement if you're going to stay with the current element's.

if("") {
    then {
    }
    else if("") {
    }
}
 

To find out if they have http https or www. As you'll see. Not all the URLS are http(s) some are, some or others. Need to use the above if to go threw and see if it matches unless you have the URL that's shown on google. Then you'll need to have the if, set the INput Key with the current format of the URL shown on google. 

ORRR 

Now that I think about it about to pass out on the keyboard, can just scrape the whole page, and IF the url is on the page, then have it click it. 
 

ui text box("Total Loops", #Cycles)
ui open file("Proxy List:", #Proxies)
ui stat monitor("Proxy:", #Proxy)
ui stat monitor("Position:", "{#Proxy_Pos} / {$list total(%Proxies)}")
set(#Proxy_Pos, 0, "Global")
ui text box("Domain:", #domain)
ui text box("Search key:", #skey)
clear list(%Proxies)
add list to list(%Proxies, $list from file(#Proxies), "Delete", "Global")
clear list(%useragents)
add list to list(%useragents, $list from file("{$special folder("Desktop")}\\user-agent-list.txt"), "Delete", "Global")
loop(#Cycles) {
    set(#position, $rand(0, 1729), "Global")
    set user agent($list item(%useragents, #position))
    clear cookies
    Change Proxy()
    navigate("http://www.google.com/search?q={#skey}&num=10&start=000", "Wait")
    set(#INPUT Keyword, #domain, "Global")
    clear list(%RESULTS)
    add list to list(%RESULTS, $scrape attribute(<cite,class="_Rm">, "fullhref"), "Delete", "Global")
    set(#RESULTS Row, 0, "Global")
    loop($list total(%RESULTS)) {
        if($contains($list item(%RESULTS, #RESULTS Row), #INPUT Keyword)) {
            then {
                click(<href=#INPUT Keyword>, "Left Click", "No")
                wait for browser event("Page Loaded", 10)
                wait(25)
            }
            else {
            }
        }
        increment(#RESULTS Row)
    }
    wait(1)
}
define Change Proxy {
    if($comparison(#Proxy_Pos, ">=", $list total(%Proxies))) {
        then {
            set(#Proxy_Pos, 0, "Global")
        }
        else {
        }
    }
    set(#Proxy, $list item(%Proxies, #Proxy_Pos), "Global")
    change proxy(#Proxy)
    wait(2)
    increment(#Proxy_Pos)
}
 

 
Regards,
HaHaItsJake

 

Edited by AhrimanSefid
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...