Cornerstone 0 Posted February 13, 2010 Report Share Posted February 13, 2010 Hello,I am building a bot to submit rss feeds to a siteI've been able to get it to identify the captcha imageand submit the rss feed. The problem I'm having is that I want the captcha sequence to loopbased on whether the rss feed was susscsfully submited or not If you put in the wrong captcha it doesn't return an error itjust puts another captcha on the screen. if you put in the corect captchaand submit it returns xxxxxx was submitted sucessfully. When I try to put it in a loop it is looking for a # of time to loop or a parameter. Can some one point me in the right direction? I've tried using a if then statement but couldn't figured it out The site it self is http://www.xmeta.net/users/ Quote Link to post Share on other sites
alcr 135 Posted February 13, 2010 Report Share Posted February 13, 2010 I guess you could do something like this: If Not Search Page 'was submitted sucessfully' then do XY Quote Link to post Share on other sites
Cornerstone 0 Posted February 13, 2010 Author Report Share Posted February 13, 2010 Thanks for your reply, That's what I've been trying as well.Just for testing I had it nav to a different page based on whether that text appeared on the pageThat works as far as the logic part But I need it to loop until it meets the condition rather than one time. I guess you could do something like this: If Not Search Page 'was submitted sucessfully' then do XY Quote Link to post Share on other sites
alcr 135 Posted February 13, 2010 Report Share Posted February 13, 2010 Put it in a sub. So that it goes like this: Run sub sub:If Not Search Page 'was submitted sucessfully' then run sub Quote Link to post Share on other sites
Chris 2 Posted February 13, 2010 Report Share Posted February 13, 2010 What I did in this situation was use the "while" command to look for the error message from the captcha after trying to solve it. While the error message is there it will keep running through my captcha solving process. Not sure if it's the "correct" way to do things but it works like a charm. Attached a pic. -Chris Quote Link to post Share on other sites
Cornerstone 0 Posted February 13, 2010 Author Report Share Posted February 13, 2010 Thanks I'll give it a try What I did in this situation was use the "while" command to look for the error message from the captcha after trying to solve it. While the error message is there it will keep running through my captcha solving process. Not sure if it's the "correct" way to do things but it works like a charm. Attached a pic. -Chris 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.