Python爬虫-Selenium库详解

Selenium官网:

https://selenium-python.readthedocs.io/index.html

Python爬虫-Selenium库详解_第1张图片
Python爬虫-Selenium库详解_第2张图片
Python爬虫-Selenium库详解_第3张图片
Python爬虫-Selenium库详解_第4张图片
Python爬虫-Selenium库详解_第5张图片

更多webdriver操作:

https://selenium-python.readthedocs.io/api.html#module-selenium.webdriver.remote.webelement

Python爬虫-Selenium库详解_第6张图片
Python爬虫-Selenium库详解_第7张图片
练习网址:https://www.runoob.com/try/try.php?filename=jqueryui-api-droppable

更多交互动作:

https://selenium-python.readthedocs.io/api.html#module-selenium.webdriver.common.action_chains


Python爬虫-Selenium库详解_第8张图片
Python爬虫-Selenium库详解_第9张图片
Python爬虫-Selenium库详解_第10张图片
Python爬虫-Selenium库详解_第11张图片
Python爬虫-Selenium库详解_第12张图片

注意:在子frame里面是获取不到外面的logo的


Python爬虫-Selenium库详解_第13张图片
Python爬虫-Selenium库详解_第14张图片

更多等待条件查看:

https://selenium-python.readthedocs.io/api.html#module-selenium.webdriver.support.expected_conditions

Python爬虫-Selenium库详解_第15张图片
Python爬虫-Selenium库详解_第16张图片
Python爬虫-Selenium库详解_第17张图片
Python爬虫-Selenium库详解_第18张图片

更多异常查看:

https://selenium-python.readthedocs.io/api.html#module-selenium.common.exceptions

你可能感兴趣的:(Python爬虫-Selenium库详解)