我必须为在线博客和不同的单词处理功能编写一个 C 语言解析器。
我知道如何在 C 中解析/标记字符串,但是您如何在执行时将页面内容作为 HTML 文件下载到本地 /tmp
目录,以便我可以保存信息(博客) 使用 I/O 转换成字符串?
或者,直接从我正在查看的页面中获取文本 block ...
我的系统可能是 Ubuntu 或 Windows 7,所以我认为 wget
不会削减它。请帮忙。
最佳答案
看看libcurl :
libcurl is a free and easy-to-use client-side URL transfer library, supporting [...] HTTP, HTTPS, [...]
libcurl is highly portable, it builds and works identically on numerous platforms, including [...] Linux, [...] Windows, [...]
关于c - 如何使用C下载网页内容?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3683223/