You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
# 导入输出图片工具
# 使用snapshot-selenium 渲染图片
# 安装pyecharts
# pip install pyecharts
# 安装插件
# pip install snapshot-selenium
# 下载Chrome插件
# http://npm.taobao.org/mirrors/chromedriver/
方法限制:
(1)必须有 Chrome浏览器, 而且chromedriver的版本必须与Chrome版本匹配, 这基本是就限定了生成机器应该是一台 Windows主机
这在本项目中没有什么问题, 有一台WINDOWS 主机。
(2)必须是https的网址, 这在一些地区就没办法了, 只能是先让用户申请成功https。
(3) 不支持传参, 只能是用代码将最终的模板复制出31份, 然后人工上去手动修改url地址
https://www.cnblogs.com/-wenli/p/14024078.html
工具安装
安装pyecharts: pip install pyecharts
安装snapshot-selenium: pip install snapshot-selenium
安装ChromeDriver: 下载地址
注意: 下载和电脑上的谷歌浏览器版本相同或者相近的版本, 将ChromeDriver.exe放到项目文件所在文件夹即可。