Project

capit

0.01
No commit activity in last 3 years
No release in over 3 years
CapIt provides a simple Ruby interface to Björn Höhrmann's CutyCapt.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 2.9.0
 Project Readme

CapIt!

CapIt provides a simple Ruby interface to Björn Höhrmann's CutyCapt.

Install CutyCapt

OSX (via Homebrew)

brew install cuty_capt

Ubuntu >= 11.04 & Debian >= 6.0

sudo apt-get install xvfb
sudo apt-get install cutycapt

Other Ubuntu/Debian

(from Setting up Headless XServer and CutyCapt on Ubuntu)

sudo apt-get install xvfb
sudo apt-get install xfs xfonts-scalable xfonts-100dpi
sudo apt-get install libgl1-mesa-dri
sudo apt-get install subversion libqt4-webkit libqt4-dev g++
svn co https://cutycapt.svn.sourceforge.net/svnroot/cutycapt
cd cutycapt/CutyCapt
qmake
make

You'll also need to make sure the CutyCapt executable is in your PATH.

Install CapIt

gem install capit

Usage

require 'capit'
capit = CapIt::Capture("http://www.github.com")
# You can also set CutyCapt's path manually if necessary.
capit = CapIt::Capture("http://www.github.com", :cutycapt_path => "/sbin/CutyCapt")