- Python Web Scraping Cookbook
- Michael Heydt
- 176字
- 2021-06-30 18:43:58
Scraping Python.org with Selenium and PhantomJS
This recipe will introduce Selenium and PhantomJS, two frameworks that are very different from the frameworks in the previous recipes. In fact, Selenium and PhantomJS are often used in functional/acceptance testing. We want to demonstrate these tools as they offer unique benefits from the scraping perspective. Several that we will look at later in the book are the ability to fill out forms, press buttons, and wait for dynamic JavaScript to be downloaded and executed.
Selenium itself is a programming language neutral framework. It offers a number of programming language bindings, such as Python, Java, C#, and PHP (amongst others). The framework also provides many components that focus on testing. Three commonly used components are:
- IDE for recording and replaying tests
- Webdriver, which actually launches a web browser (such as Firefox, Chrome, or Internet Explorer) by sending commands and sending the results to the selected browser
- A grid server executes tests with a web browser on a remote server. It can run multiple test cases in parallel.
推薦閱讀
- 微商之道
- 物聯(lián)網(wǎng)智慧安監(jiān)技術(shù)
- 物聯(lián)網(wǎng)安全:理論、實(shí)踐與創(chuàng)新
- INSTANT PhpStorm Starter
- Windows Server 2003 Active Directory Design and Implementation: Creating, Migrating, and Merging Networks
- 互聯(lián)網(wǎng)安全的40個(gè)智慧洞見:2015年中國(guó)互聯(lián)網(wǎng)安全大會(huì)文集
- Building RESTful Web Services with Spring 5(Second Edition)
- 射頻通信系統(tǒng)
- Microsoft Dynamics CRM 2011 Applications(MB2-868) Certification Guide
- CCNP TSHOOT(642-832)認(rèn)證考試指南
- 高級(jí)網(wǎng)絡(luò)技術(shù)
- TCP/IP基礎(chǔ)(第2版)
- 計(jì)算機(jī)網(wǎng)絡(luò)技術(shù)
- Selenium WebDriver 3 Practical Guide
- 物聯(lián)網(wǎng)與智慧農(nóng)業(yè)