- 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.
推薦閱讀
- 物聯網智慧安監技術
- 從區塊鏈到Web3:構建未來互聯網生態
- 物聯網之魂:物聯網協議與物聯網操作系統
- Hands-On Full Stack Development with Spring Boot 2 and React(Second Edition)
- 2018網信發展報告
- 城市治理一網統管
- 基于性能的保障理論與方法
- 網絡設計與應用(第2版)
- 網絡利他行為研究:積極心理學的視角
- 巧學活用CISCO網絡典型配置
- 5G新型多址技術
- Learning IoT with Particle Photon and Electron
- 云計算、網絡安全和網絡盜竊:網絡世界防盜初學指南
- 物聯網與無線傳感器網絡(第2版)
- 5G智聯萬物:輕松讀懂5G應用與智能未來