构建网络爬虫 - 使用 Webkit 包 [英] Building a web crawler - using Webkit packages

查看:24
本文介绍了构建网络爬虫 - 使用 Webkit 包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建一个网络爬虫.
我需要两件事:

  • 将 HTML 转换为 DOM 对象.
  • 按需执行现有 JavaScript.
  • I'm trying to build a web crawler.
    I need 2 things:

    • Convert the HTML into a DOM object.
    • Execute existing JavaScripts on demand.
      • 操作系统:Windows
      • 语言:C++

      推荐答案

      查看与 WebKit 主干一起打包的一些测试工具.大多数端口(据我所知)包括 DumpRenderTree,它实例化一个 WebKitView,然后在处理指定文件后吐出一个渲染树.理论上,它是最简单的 WebKit 示例之一.

      Check out some of the testing tools packaged alongside the WebKit trunk. Most ports (as far as I know) include DumpRenderTree which instantiates an WebKitView and then spits out a render tree after processing a specified file. It's theoretically one of the simplest examples of WebKit possible.

      这篇关于构建网络爬虫 - 使用 Webkit 包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆