没有项目描述
pageshot的Python项目详细描述
截取特定url的屏幕截图。
[![循环ci](https://circleci.com/gh/mobify/pageshot.svg?style=svg&circle-token=<;cirlce ci token>;)](https://circleci.com/gh/mobify/pageshot)
[![覆盖状态](https://coveralls.io/repos/mobify/pageshot/badge.svg?branch=master&service=github)](https://coveralls.io/github/mobify/pageshot?分支=主)
#示例
import pageshot
s = pageshot.Screenshoter() s.take_screenshot(“http://www.google.com”, “out.png”)
#安装
我们需要幽灵的支持。
npm -g install phantomjs
要安装,请将其包含在requirements.txt中
git+https://github.com/sketchytechky/pageshot.git
#运行测试
使用
运行测试py.test –pep8
在监视模式下运行测试
py.test.watch – –pep8 # same with: ptw – –pep8