torutils_pj.py 文件源码

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

项目:webfp-crawler-phantomjs 作者: pankajb64 项目源码 文件源码
def init_tbb_profile(self, version):
        profile_directory = cm.get_tbb_profile_path(version)
        self.prof_dir_path = clone_dir_with_timestap(profile_directory)
        if self.capture_screen and self.page_url:
            self.add_canvas_permission()
        try:
            tbb_profile = webdriver.FirefoxProfile(self.prof_dir_path)
        except Exception:
            wl_log.error("Error creating the TB profile", exc_info=True)
        else:
            return tbb_profile
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号