hades999 0 Posted November 17, 2014 Report Share Posted November 17, 2014 how can I click a URL that Google results is Quote Link to post Share on other sites
HaHaItsJake 25 Posted November 17, 2014 Report Share Posted November 17, 2014 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. Quote Link to post Share on other sites
hades999 0 Posted November 17, 2014 Author Report Share Posted November 17, 2014 (edited) 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 November 17, 2014 by hades999 Quote Link to post Share on other sites
HaHaItsJake 25 Posted November 17, 2014 Report Share Posted November 17, 2014 Is that what you're going for? If you want to go to the link from the list, then navigate with a $next list item/$list item instead of $click. Regards,HaHaItsJake Quote Link to post Share on other sites
hades999 0 Posted November 17, 2014 Author Report Share Posted November 17, 2014 (edited) yes this script dont work !! you can help me Edited November 17, 2014 by hades999 Quote Link to post Share on other sites
HaHaItsJake 25 Posted November 17, 2014 Report Share Posted November 17, 2014 I'm not sure what you're trying to do. What are you putting in the #Domain var, and what are you trying to accomplish? Regards,HaHaItsJake Quote Link to post Share on other sites
hades999 0 Posted November 17, 2014 Author Report Share Posted November 17, 2014 search keyword find the Domain in Google results and click the Domain Quote Link to post Share on other sites
HaHaItsJake 25 Posted November 17, 2014 Report Share Posted November 17, 2014 (edited) 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/DogNOTE: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 November 17, 2014 by HaHaItsJake Quote Link to post Share on other sites
hades999 0 Posted November 17, 2014 Author Report Share Posted November 17, 2014 the clicking is problem Quote Link to post Share on other sites
hades999 0 Posted November 18, 2014 Author Report Share Posted November 18, 2014 (edited) search keyword page 1 and Domain klicking the keyword i not of page one than klicking to page 2 or 3 to find the Domain and klicking Edited November 18, 2014 by hades999 Quote Link to post Share on other sites
AhrimanSefid 0 Posted June 25, 2017 Report Share Posted June 25, 2017 (edited) 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/DogNOTE: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 June 25, 2017 by AhrimanSefid Quote Link to post Share on other sites
AhrimanSefid 0 Posted June 26, 2017 Report Share Posted June 26, 2017 not help me? Quote Link to post Share on other sites
HelloInsomnia 1103 Posted June 26, 2017 Report Share Posted June 26, 2017 not help me? This thread is 2.5 years old you have to take that into consideration. If you have a question I suggest you open a new thread. Quote Link to post Share on other sites
AhrimanSefid 0 Posted June 26, 2017 Report Share Posted June 26, 2017 This thread is 2.5 years old you have to take that into consideration. If you have a question I suggest you open a new thread.i,m try for make new thread.but show me Error : Quote Link to post Share on other sites
HelloInsomnia 1103 Posted June 27, 2017 Report Share Posted June 27, 2017 i,m try for make new thread.but show me Error : erred.png That happens sometimes wait a few minutes and try again. If it's not working after awhile just ask your question in here I guess. Quote Link to post Share on other sites
AhrimanSefid 0 Posted June 27, 2017 Report Share Posted June 27, 2017 I'm trying 3 days, but it's all the same. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.