siteshot
1.0.0
网站屏幕截图用GO编写,设计为无X会话(感谢XVFB)。
将带有url字段的POST请求发送到服务器。任何其他请求都会返回400 Bad Request 。
curl --data "url=https://html.house/xpeoccu2.html" http://localhost:3333
用Python 2.7 / pip 1.5.4在Ubuntu 14.04上测试。
tl; sudo apt-get install xvfb imagemagick python-qt4 libqt4-webkit && pip install git+https://github.com/adamn/python-webkit2png.git && go get github.com/writeas/siteshot
sudo apt-get install imagemagicksudo apt-get install xvfbsudo apt-get install python-qt4 libqt4-webkitpip install git+https://github.com/adamn/python-webkit2png.git (来自github评论)go get github.com/writeas/siteshot