Skip to content

The C++ webkit-server from capybara-webkit with useful extensions and Python bindings

License

Notifications You must be signed in to change notification settings

freskoulix/webkit-server

Repository files navigation

Overview

A standalone version of the Webkit server included in capybara-webkit. It includes a slim Python wrapper and the following improvements over the original version from thoughtbot:

  • Wait command to wait for the current page to load
  • SetAttribute command to configure certain QWebkit settings
  • SetHtml command to load custom HTML into the browser (e.g. to execute scripts on web pages scraped by a static scraper)
  • SetViewportSize command to set the viewport size of the in-memory browser

If you are interested in web scraping using this server, have a look at dryscrape.

Building and Installing

To install the Python binding (this also builds the server and places it into Python's site-package directory):

sudo python setup.py install

If you don't need the Python bindings, you can also use the supplied build.sh shellscript to build the server only.

License

This software is based on capybara-webkit. capybara-webkit is Copyright (c) 2011 thoughtbot, inc. It is free software, and may be redistributed under the terms specified in the LICENSE file.

About

The C++ webkit-server from capybara-webkit with useful extensions and Python bindings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 65.8%
  • Python 22.5%
  • JavaScript 9.3%
  • IDL 2.0%
  • Shell 0.4%