screenshots_crawler.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:accurate_weibo_crawler 作者: wdwind 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号