Chirag8520 0 Posted October 1, 2013 Report Share Posted October 1, 2013 In this my Script iwill post message on Google Group.. and i want to Extract url, but i got error In this my Script i will Extract only one Url and after when we go for other then first url will be Delete So Plese Help to make My ScriptGoogle Code2.ubot Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted October 1, 2013 Report Share Posted October 1, 2013 taking a look Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted October 1, 2013 Report Share Posted October 1, 2013 here you go ui save file("SaveLink", #Save Link)ui open file("Load List:", #load_urls)ui text box("Google Login:", #Google Login)ui text box("Google Pass:", #Google Pass)clear list(%scraped url)clear list(%urls)add list to list(%urls, $list from file(#load_urls), "Delete", "Global")set list position(%urls, 0)google login()define google login { navigate("https://accounts.google.com", "Wait") wait for browser event("Everything Loaded", "") clear cookies navigate("https://accounts.google.com/ServiceLogin", "Wait") wait(2) wait for browser event("Everything Loaded", "") type text(<email field>, #Google Login, "Standard") type text(<password field>, #Google Pass, "Standard") click(<login button>, "Left Click", "No") wait(2) wait for browser event("Everything Loaded", "")}loop($list total(%urls)) { set(#url_in_use, $next list item(%urls), "Global") navigate(#url_in_use, "Wait") wait(2) wait for browser event("Everything Loaded", "") if($exists(<innertext="Join group">)) { then { click(<innertext="Join group">, "Left Click", "No") wait for element(<innertext="Join this group">, "", "Appear") wait(2) type text(<innertext="Join this group">, "", "Standard") wait(2) wait for browser event("Everything Loaded", "") navigate(#url_in_use, "Wait") wait(2) wait for browser event("Everything Loaded", "") } else { } } if($exists(<innertext="NEW TOPIC">)) { then { click(<innertext="NEW TOPIC">, "Left Click", "No") click(<class="GC2AS1XDDX">, "Left Click", "No") wait(5) click(<class="GC2AS1XDDT">, "Left Click", "No") wait(5) type text(<maxlength=250>, $spin("Help \{with Security| make code secure\}"), "Standard") wait(5) type text(<id=w"p-b-*">, $spin("\{Hi|Sorry to intrude your mailbox\}I have created \{an online PHP code executor|a real time PHP code compiler\} at http://web.guru99.com\{Though|Although\} I have checked all security \{aspects|loopholes\} … do you experts see any major \{flaw|security leak\} that I need to care of?"), "Standard") wait(5) click(<id="b_post">, "Left Click", "No") wait(10) type text(<name="recaptcha_response_field">, $solve captcha(<style="display:block;">), "Standard") wait(10) click($element offset(<class="GC2AS1XDDT">, 4), "Left Click", "No") click(<innertext="Help with Security">, "Left Click", "No") click(<innertext="Help make code secure">, "Left Click", "No") add item to list(%scraped url, $url, "Delete", "Global") save to file("d:\\working data\\admin\\Desktop\\pppppppp.txt", %scraped url) set(#Save Link, #url_in_use, "Global") wait for browser event("Everything Loaded", "") } else { } }} 1 Quote Link to post Share on other sites
Chirag8520 0 Posted October 1, 2013 Author Report Share Posted October 1, 2013 here you go ui save file("SaveLink", #Save Link)ui open file("Load List:", #load_urls)ui text box("Google Login:", #Google Login)ui text box("Google Pass:", #Google Pass)clear list(%scraped url)clear list(%urls)add list to list(%urls, $list from file(#load_urls), "Delete", "Global")set list position(%urls, 0)google login()define google login { navigate("https://accounts.google.com", "Wait") wait for browser event("Everything Loaded", "") clear cookies navigate("https://accounts.google.com/ServiceLogin", "Wait") wait(2) wait for browser event("Everything Loaded", "") type text(<email field>, #Google Login, "Standard") type text(<password field>, #Google Pass, "Standard") click(<login button>, "Left Click", "No") wait(2) wait for browser event("Everything Loaded", "")}loop($list total(%urls)) { set(#url_in_use, $next list item(%urls), "Global") navigate(#url_in_use, "Wait") wait(2) wait for browser event("Everything Loaded", "") if($exists(<innertext="Join group">)) { then { click(<innertext="Join group">, "Left Click", "No") wait for element(<innertext="Join this group">, "", "Appear") wait(2) type text(<innertext="Join this group">, "", "Standard") wait(2) wait for browser event("Everything Loaded", "") navigate(#url_in_use, "Wait") wait(2) wait for browser event("Everything Loaded", "") } else { } } if($exists(<innertext="NEW TOPIC">)) { then { click(<innertext="NEW TOPIC">, "Left Click", "No") click(<class="GC2AS1XDDX">, "Left Click", "No") wait(5) click(<class="GC2AS1XDDT">, "Left Click", "No") wait(5) type text(<maxlength=250>, $spin("Help \{with Security| make code secure\}"), "Standard") wait(5) type text(<id=w"p-b-*">, $spin("\{Hi|Sorry to intrude your mailbox\} I have created \{an online PHP code executor|a real time PHP code compiler\} at http://web.guru99.com\{Though|Although\} I have checked all security \{aspects|loopholes\} … do you experts see any major \{flaw|security leak\} that I need to care of? "), "Standard") wait(5) click(<id="b_post">, "Left Click", "No") wait(10) type text(<name="recaptcha_response_field">, $solve captcha(<style="display:block;">), "Standard") wait(10) click($element offset(<class="GC2AS1XDDT">, 4), "Left Click", "No") click(<innertext="Help with Security">, "Left Click", "No") click(<innertext="Help make code secure">, "Left Click", "No") add item to list(%scraped url, $url, "Delete", "Global") save to file("d:\\working data\\admin\\Desktop\\pppppppp.txt", %scraped url) set(#Save Link, #url_in_use, "Global") wait for browser event("Everything Loaded", "") } else { } }}Thank You So Much... For Help Quote Link to post Share on other sites
Brutal 164 Posted October 1, 2013 Report Share Posted October 1, 2013 Once again TJ saved the day! 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.