Jump to content

Web Browser Control, implementing a Find function

- - - - -

  • Please log in to reply
No replies to this topic

#1
DorumonSg

DorumonSg

    Newbie

  • Members
  • Pip
  • 5 posts
Web Browser Control, implementing a Find function

How do you implement a Find function in a Web Browser Control. Read on before telling me to just press Ctrl + F, that's not what I want.

It's something similar to Ctrl + F but besides finding the Search Keywords, I want to also to be able to extract the sentence or paragraph the Search Keyword is in and save it in another file.

My problem is that a lot of web sites uses multiple frames and some of the frames they use are not even HTML. Example Blogger, they have this tag thing and ta da~ Another section appears.

I've been trying to extract the every single HTML source from web pages so I can search for the keywords I want but to no avail since some frames aren't HTML frames. I have no idea how to do it because it is tedious and it pretty much impossible to incorporate an algorithm that can suit all of them. So I was thinking why not just search the web page directly without extract the HTML page? Something like how Ctrl + F does very well.

Is there a way to do it?

I need it to be able to do 3 things.

1. Search the keyword directly from the web page.
2. From the position of the keyword loop backwards till a fullstop is found and then loop forwards till another fullstop is found. This is so I can extract sentences out. Paragraph will be the same, using space instead of fullstop.

3. Detect Hyperlinks, though I think this is for another Thread.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users