kamran 0 Posted June 4, 2010 Report Share Posted June 4, 2010 Hey guys,just ran into a problem that i thought would be very common but surprisingly the search did not bring up any discussion. I am trying to create a bot for signing up in a particular type of forum. The problem is some of these sites have captcha and some dont, so I need to create a conditional to first check whether a captcha is required or not. So the flow would be like this:-----------search page for *code* and *captcha*if they exist choose the captcha by attributedecode the captchaetc elsebreak----------problem is, I am not able to create an if loop where it checks whether a certain word (like captcha or code) exists in a page or not...can some1 help me. Thanks in advance Quote Link to post Share on other sites
alcr 135 Posted June 4, 2010 Report Share Posted June 4, 2010 if search page *captcha* thenchoose the captcha by attributedecode the captchaelseif search page *code*thenchoose the captcha by attributedecode the captcha Is this what you're trying to say? Or why do you need a loop? Quote Link to post Share on other sites
kamran 0 Posted June 4, 2010 Author Report Share Posted June 4, 2010 Never mind, just figured it out. Thanks for the reply alcr 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.