python 类的编写与调用
来源:互联网 发布:阿里云空间怎么买 编辑:程序博客网 时间:2024/06/06 10:54
from selenium import webdriverclass Qiubai: def __init__(self): self.dr=webdriver.Chrome('G:/Users/f/AppData/Local/Google/Chrome/chromedriver') self.dr.get('https://www.qiushibaike.com') def get_Content(self): main_content = self.dr.find_element_by_id('content-left') contents = main_content.find_elements_by_class_name('content') i = 1 for content in contents: print(str(i), '.', content.text, '\n') i += 1 self.dr.quit() def quit(self): self.dr.quit()Qiubai().get_Content()
阅读全文
0 0
- python 类的编写与调用
- DLL的编写与调用
- JNI的调用与编写
- python调用java编写的Webservice
- python调用java编写的Webservice
- python调用C++编写的DLL
- python调用matlab编写的函数
- Python模块的编写和调用
- python调用java编写的Webservice
- 用Python编写MapReduce代码与调用-某一天之前的所有活跃用户统计(1)
- 用Python编写MapReduce代码与调用-某一天之前的所有活跃用户统计(2)
- 用Python编写MapReduce代码与调用-统计accessLog中链接的点击量
- 用Python编写MapReduce代码与调用-统计accessLog中链接所对应的UV
- Python中类的定义与调用
- python类的调用与方法的调用,函数修饰
- 简单的存储过程编写与调用
- 内核模式的dll编写与调用
- sql server 函数的编写与调用
- Glide网络图片滑动查看,可缩放(PhotoView example)
- 小波变换
- POJ 3304 Segments [枚举+叉乘判断线段相交]
- PTA-沙漏打印
- 地图布局相关----CSS实现div的高度填满剩余空间
- python 类的编写与调用
- Android OKHttp源码解析
- TabLayout+Fragment
- ubun_caffw_fast-rcnn编译坎坷路
- Trafodion Rename Table不成功的另外一种解决方法
- 电脑操作问题解决
- mvc框架
- Web项目文件的下载
- 算法导论-排序的Python&C++简单实现