开发者

how to get html web page?

开发者 https://www.devze.com 2023-02-06 15:21 出处:网络
I have to extract some information from html web page which contains the following table : //Http://www.example.com/12.html

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

精彩评论

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

关注公众号