开发者

how to get html web page?

I have to extract some information from html web page which contains the following table :

//Http://www.example.com/12.html
//<html ... >
<table>
<tr>
<td>HIIIIIIIIIII</td> 开发者_如何学编程// this is what I need from this page
</tr>
<tr><td>bla bla bla</td></tr>
</table>

any Ideas ?

Thank u


You should have a look at the Html Agility Pack, which provides good ways of parsing/reading HTML (even badly formed)

On this S.O. question, you can find a sample of how to extract table data. And this question contains sample of usage with LINQ.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜