简体   繁体   中英

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 SO question , you can find a sample of how to extract table data. And this question contains sample of usage with LINQ.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM