批量下载matplotlib.pyplot.subplots页面实例源码的python脚本
来源:互联网 发布:知吾煮抗摔玻璃保鲜盒 编辑:程序博客网 时间:2024/05/29 18:08
matplotlib实例网页:
http://matplotlib.org/devdocs/api/_as_gen/matplotlib.pyplot.subplots.html#matplotlib.pyplot.subplots
Examples using matplotlib.pyplot.subplots模块:
单个实例页面:
批量下载源码脚本,基于selenium:
getUrlList.py
获取单个实例url页面
#coding=utf8import urllib2,redef getUrlList(): try: url="http://matplotlib.org/devdocs/api/_as_gen/matplotlib.pyplot.subplots.html#matplotlib.pyplot.subplots" matutl="http://matplotlib.org/devdocs/gallery/" pageContent=urllib2.urlopen(url).read() if pageContent: linkList=re.findall('class="reference internal" href="../../gallery/(.*?)"><span class="std std-ref">(.*?)</span></a>', pageContent, re.S) charList=[matutl+var[0] for var in linkList if len(linkList)>0] return charList except Exception,e: print "Create UrlList Error:",e
getMatpoltDemo.py
批量下载matplotlib.pyplot实例源码脚本
#coding=utf8 from selenium import webdriverfrom getUrlList import getUrlListimport timeurlList=getUrlList()driver=webdriver.Chrome() for url in getUrlList(): driver.maximize_window() driver.get(url) js="var q=document.body.scrollTop=200000" driver.execute_script(js) downLoadBtnList=driver.find_elements_by_partial_link_text('Download') if len(downLoadBtnList)>0: for downLoad in downLoadBtnList: downLoad.click() time.sleep(3)driver.close()
阅读全文
0 0
- 批量下载matplotlib.pyplot.subplots页面实例源码的python脚本
- 批量下载matplotlib网站实例源码python脚本
- matplotlib.pyplot.subplots
- 通过urllib2与re模块获取matplotlib实例源码批量下载脚本
- Python:matplotlib中pyplot的使用方法
- python matplotlib.pyplot importerror
- 【python】matplotlib.pyplot介绍
- Python---matplotlib.pyplot
- 【python】matplotlib.pyplot入门
- python之Matplotlib.pyplot
- Matplotlib 生成不同大小的subplots
- matplotlib subplots 设置总图的标题
- Python matplotlib简介 Pyplot教程
- Python篇(二):matplotlib中pyplot的使用简介
- python脚本编程:批量下载指定页面图片
- matplotlib subplots 调整子图间矩
- subplots与figure函数参数解释说明以及简单的使用脚本实例
- Python应用matplotlib.pyplot画图总结
- 多校 HDU6097 Mindis (几何)
- 用jquery实现图片的懒加载
- 数据结构实验之图论二:基于邻接表的广度优先搜索遍历
- vs2015数据驱动的单元测试
- [linux]grep 查看前后文
- 批量下载matplotlib.pyplot.subplots页面实例源码的python脚本
- 加密算法
- 用python实现机器学习算法(一)---DesicionTree
- OpenJudge百炼-2966-时区转换-C语言-日期处理
- hdu 6103 暴力枚举+贪心
- BS和CS的区别以及优缺点
- 【Android破解笔记】割绳子2内购
- Android 内存管理
- C++中智能指针的设计和使用