#

Ghost.py 설치

http://jeanphix.me/Ghost.py/


$ sudo apt-get install qt-sdk python-pyside

$ sudo pip install pyside


$ git clone https://github.com/jeanphix/Ghost.py.git ghost

$ cd ghost

$ sudo python setup.py install


#

capture


from ghost import Ghost

ghost = Ghost()

page, resource=ghost.open("http://www.google.com")

ghost.capture_to('google.png')


#

snapshot



#

TroubleShooting


1. pyside 설치 오류 발생시

RuntimeError: Can't find '/usr/bin/pyside_postinstall.py'

http://stackoverflow.com/questions/16074801/pyside-install-fails-python-2-7-4


~/build/pyside에 pyside 소스가 이미 다운로드 되어 있다. 

$ cd ~/build

$ sudo chmod -R userid:userid pyside


egg 만들기

$ python setup.py bdist_egg --qmake=/usr/bin/qmake-qt4 


install

$ sudo easy_install dist/PySide-1.2.1-py2.7.egg

$ sudo python pyside_postinstall.py -install


Happy Coding~:)

+ Recent posts