Biks 9 Posted January 15, 2013 Report Share Posted January 15, 2013 How do I get Ubot to search the actual URL for something? Some sites will throw you to a captcha or even ban page (Twitter/Facebook) if you've done something naughty. I know I can look for an element on the page, but I know I'm in trouble and I need to stop my bot IF I've ended up on a certain page. As an example on Twitter - they may throw you to their captcha page: https://twitter.com/login/captcha?redirect_after_login=%2F&username_or_email= Any way of saying "if the URL has "captcha" in it - do this" Quote Link to post Share on other sites
a2mateit 395 Posted January 15, 2013 Report Share Posted January 15, 2013 You can accomplish with an if statement. Then put a contains, use $url and check for your term... Heres an example: if($contains($url, "text to search for")) { then { comment("do something") } else { } } HTH,Justin 1 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.