3 Star 0 Fork 0

Gitee 极速下载 / headless-browser

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/alexandernst/headless_browser
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Headless browser based on WebKit

This tool will help you make your AJAX applications crawlable.

Webpages based on JavaScript MVC libraries can't be positioned by default because search engines can't run (yet) all the JavaSript code that your page needs to execute in order to show anything. That's why you need a headless browser that will fetch the page, run the JavaSript and output the resulting HTML to the crawler, which will then be able to index your page.

The entire project is under 50 lines of code so you won't have any trouble understanding it. It's based on Qt4 so it should work on all operating systems. There's also a small example written in PHP, but you're free to use it however you want.

There's one small thing that you should know about this headless browser. It will output everything as UTF-8. Most of the time this works like a charm, but there are also a lot of pages that don't use any encoding, or set one encoding in the headers, but the content has another. Most browsers try to guess what encoding are using the pages you make it open, and that's ok with most pages, but there are some exceptions. And that's why I don't want to play the same game of trying to guess the encoding. Instead I'm leaving that part to you, dear developer :)

TIP: https://developers.google.com/webmasters/ajax-crawling/docs/getting-started

Install

This project relies heavily on Socket-IPC. To get this project and the required submodules you'll need git. Make sure to run this:

git clone git://github.com/alexandernst/headless_browser.git headless_browser
cd headless_browser
git submodule init
git submodule update

空文件

简介

暂无描述 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/mirrors/headless-browser.git
git@gitee.com:mirrors/headless-browser.git
mirrors
headless-browser
headless-browser
master

搜索帮助