开发者

Parse html page source with libcurl and C

开发者 https://www.devze.com 2022-12-18 06:44 出处:网络
How can I print the source of a webpage, sp开发者_如何学Goecified in curl_easy_setopt, without html tags? So, printing only the text in the source?Curl/libcurl is just for fetching the HTML page. To e

How can I print the source of a webpage, sp开发者_如何学Goecified in curl_easy_setopt, without html tags? So, printing only the text in the source?


Curl/libcurl is just for fetching the HTML page. To extract information from it, you need other tools.

The most general solution is to use a HTML parser. A good one in C is HTMLparser from libxml.

0

精彩评论

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

关注公众号