Dynamic HTML
Dynamic HTML Introduction
- JavaScript
- jQuery
- Ajax
- DHTML
- Python dynamic data collection
- Starting collected from JavaScript code
- Python third party libraries running JavaScript, direct capture page that you see in your browser
Selenium + PhantomJS
- Selenium: web automated testing tool
- This page will reload
- retrieve data
- Screenshots
- Installation: pip install selenium == 2.48.0
- Official website
- Chinese documents
- PhantomJS (ghost)
- Webkit-based browser interface without
- Official website
- Selenium has a library of API WebDriver
- WebDriver can interact with various elements on the page, you can use it to crawl
- Case v39
'''
案例v39
通过WebDriver操作百度并进行查找
'''