def capture_screenshot(self, url, destination, cookie='', timeout=30000):
logger.log("[#] Capture screenshot %s, and put it in %s" % (url, destination))
#subprocess.call([self.phantomjs_folder + 'phantomjs.exe', self.phantomjs_folder + 'rasterize6_cookies.js', url, destination, str(timeout), cookie])
cmd = list2cmdline([path_to_unix(self.phantomjs), \
JS_SCRIPT, \
url, path_to_unix(destination), str(timeout), cookie])
r = envoy.run(str(cmd), timeout=60+timeout/1000)
screenshots_crawler.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录