无头WebKit的包装/驱动器没有安装.NET [英] Headless webkit wrapper/driver no install for .net

查看:152
本文介绍了无头WebKit的包装/驱动器没有安装.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找一个嵌入式无头的浏览器.NET 具有以下属性:

I'm looking for an embedded headless browser for .net with the following properties:


  • 阿贾克斯的现代Webkit的水平/ HTML5的支持并根据preferably的WebKit

  • 无头模式能够(无可见的浏览器),更快的速度更好

  • 零安装(类似browser.exe并复制到项目中的C#包装DLL)

  • 可靠的生产使用情况的基本任务(如复杂的网页截屏),我不找99.9999可靠性这里,但它需要更加稳定,比硒快,我们有很多冗余所以偶尔的错误都OK。

  • 开放源代码或免费用于商业用途(最好MIT许可),而不是一个被遗弃的项目

  • Modern Webkit level of Ajax/HTML5 support and preferably webkit based
  • Headless mode capable (no visible browser), more speed it better
  • Zero install (something like browser.exe and a c# wrapper DLL copied into the project)
  • Reliable for production usage for basic tasks (like screen shots of complex pages), I'm not looking for 99.9999 reliability here, but it needs to be stabler and faster than Selenium, we have lots of redundancy so occasional bugs are ok.
  • OpenSource or free for commercial use (ideally MIT license) and not an abandoned project

PhantomJS将是理想的,如果它没有需要安装即可。 PhantomJS似乎满足了我所有的比没有安装部分的其他标准,因此是目前最喜欢的,但我们在设置和测试多环境部署过程安装PhantomJS(这是费时投入时间之前,因为我们使用的数以千计的在几十个数据中心)的电脑,我想确保我不会错过一个更好的选择。我是开放给非WebKit的实现,但它需要有同样的能力作为一个现代化的WebKit浏览器,而不是有古怪的渲染或AJAX的问题。我也有兴趣在听到有关PhantomJS用于屏幕shotting AJAX / HTML5网页的可靠性,如果你认为这是要走的路。例如,如果服务器渲染页面没有图形卡或高屏幕分辨率将无头的浏览器继承和呈现难看的页面?

PhantomJS would be ideal if it didn't require an install. PhantomJS seems to meet all my criteria other than the 'no install' part so it is the current favorite, but before we invest time in setting up and testing a multi environment deployment process for installing PhantomJS (which is time consuming because we use thousands of computers in dozens of datacenters) I wanted to make sure I'm not missing a better option. I'm open to non webkit implementations but it needs to have the same capabilities as a modern webkit browser and not have oddball rendering or AJAX problems. I'm also interested in hearing about the reliability of PhantomJS for screen shotting AJAX/HTML5 pages if you think that's the way to go. For example, if the server rendering the page doesn't have a graphics card or high screen resolution will the headless browser inherit that and render a ugly looking page?

推荐答案

PhantomJS可以通过提取ZIP得到的EXE安装简单。所以这是pretty在这方面简单。

PhantomJS can be installs simply by extracting the zip to get the exe. So it's pretty simple in that regard.

不知道这么多关于C#DLL的它,因为我还没有与它in.net的工作,但它可以从外部程序脚本(这有点儿整点吧),所以它不应该是太辛苦了。

Not sure so much about a c# dll for it as I've not worked with it in.net, but it can be scripted from an external program (that's kinda the whole point of it), so it shouldn't be too hard.

希望有所帮助。

这篇关于无头WebKit的包装/驱动器没有安装.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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