Jump to content
UBot Underground

search qualifier?


Recommended Posts

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

Link to post
Share on other sites
Guest turbolapp

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 :-\

Link to post
Share on other sites

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.

Link to post
Share on other sites
  • 4 weeks later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...