mencus 0 Posted October 26, 2009 Report Share Posted October 26, 2009 Hi. Hopefully someone can help. Here is what im trying to do: I have created a bot that takes a txt file list of sites and loops through them one by one. As it cycles through sites I want the bot to search for a specific html fragment - if the bot finds the fragment i want it to add the word YES to a list, and if it doesnt find it I want to add the word NO. I then want to save both the urls and yes/no list as a csv I tried using IF and IF NOT to achieve this but no luck.. any insights would be great. Thanks Quote Link to post Share on other sites
Guest turbolapp Posted October 27, 2009 Report Share Posted October 27, 2009 Could you clarify what you mean with the "no luck"? What happened when you did: if html then yeslist if not html then nolist ? As for the putting into a csv list in nice neat columns of no/yes I haven't gotten to that point, i'm still on txt lists, so no help there :-\ Quote Link to post Share on other sites
webautomationlab 21 Posted October 27, 2009 Report Share Posted October 27, 2009 I haven't saved to csv yet, but you could write out yes and no to a new text list, then just combine both lists in a spreadsheet by hand. As far as the logic, I might *try* NODE1: SET variable #found = $nothing NODE2: IF SUBNODE: SEARCHPAGE fragment SUBNODE: SET variable #found = yes NODE3: IF SUBNODE: #found = $nothing SUBNODE: SET variable #found = no Or something like that. Quote Link to post Share on other sites
bluegoat 24 Posted November 21, 2009 Report Share Posted November 21, 2009 Bump Quote Link to post Share on other sites
Guest Jim Posted December 1, 2009 Report Share Posted December 1, 2009 Are you trying to test if a string contains another string? Here's a solution I've come up with: http://ubotwiki.com/Snippet:String_Contains Let me know how that works 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.