开发者

How to import web content into a Windows form using VB.Net?

开发者 https://www.devze.com 2023-03-18 06:21 出处:网络
I want to import various parts of the webpage开发者_运维知识库 by string match. Can some one tell me how I do this as this may also involve HTML. For example consider that I import the headlines from

I want to import various parts of the webpage开发者_运维知识库 by string match. Can some one tell me how I do this as this may also involve HTML. For example consider that I import the headlines from the source of "news.google.com" or "www.yahoo.com".


It sounds like you want to go to a specific website and look for specific data (e.g. a screen scraper).

You can accomplish this easily using the web browser object "axWebBrowser". If you want something a little more raw, you can use the System.Net.WebClient class.


This question is too vague to answer with any real accuracy. However, since you mentioned 'headlines', I suggest you look up how to implement RSS feeds. There's an example here.

If you need to parse HTML, you can look at the Html Agility Pack project on CodePlex.

0

精彩评论

暂无评论...
验证码 换一张
取 消