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