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.

26 lines
1.0 KiB

This file contains ambiguous Unicode characters!

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
工具安装
安装pyechartspip install pyecharts
安装snapshot-seleniumpip install snapshot-selenium
安装ChromeDriver下载地址
注意下载和电脑上的谷歌浏览器版本相同或者相近的版本将ChromeDriver.exe放到项目文件所在文件夹即可。