- Python Web Scraping Cookbook
- Michael Heydt
- 83字
- 2021-06-30 18:43:59
How it works
The primary difference in this recipe is the following code:
driver = webdriver.Firefox()
driver.get(url)
This gets the Firefox driver and uses it to get the content of the specified URL. This works by starting Firefox and automating it to go the the page, and then Firefox returns the page content to our app. This is why Firefox popped up. The other difference is that to find things we need to call find_element_by_xpath to search the resulting HTML.
推薦閱讀
- 數(shù)據(jù)通信網(wǎng)絡(luò)實(shí)踐:基礎(chǔ)知識(shí)與交換機(jī)技術(shù)
- 連接未來(lái):從古登堡到谷歌的網(wǎng)絡(luò)革命
- Web安全防護(hù)指南:基礎(chǔ)篇
- 智能網(wǎng)聯(lián)汽車(chē)V2X與智能網(wǎng)聯(lián)設(shè)施I2X
- 5G承載網(wǎng)網(wǎng)絡(luò)規(guī)劃與組網(wǎng)設(shè)計(jì)
- 物聯(lián)網(wǎng)之魂:物聯(lián)網(wǎng)協(xié)議與物聯(lián)網(wǎng)操作系統(tǒng)
- Django 2 by Example
- Windows Server 2003 Active Directory Design and Implementation: Creating, Migrating, and Merging Networks
- 互聯(lián)網(wǎng)基礎(chǔ)資源技術(shù)與應(yīng)用發(fā)展態(tài)勢(shì)(2021—2023)
- 局域網(wǎng)組建、管理與維護(hù)項(xiàng)目教程(Windows Server 2003)
- 物聯(lián)網(wǎng)時(shí)代
- Socket.IO Real-time Web Application Development
- Kong網(wǎng)關(guān):入門(mén)、實(shí)戰(zhàn)與進(jìn)階
- Hands-On Bitcoin Programming with Python
- Qt5 Python GUI Programming Cookbook