En_t8
En_t8

Reputation: 8295

Parse html page source with libcurl and C

How can I print the source of a webpage, specified in curl_easy_setopt, without html tags? So, printing only the text in the source?

Upvotes: 0

Views: 2683

Answers (1)

Eli Bendersky
Eli Bendersky

Reputation: 273436

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.

Upvotes: 3

Related Questions