- Python Web Scraping Cookbook
- Michael Heydt
- 107字
- 2021-06-30 18:44:01
There's more...
This manner of navigating the DOM is relatively inflexible and is highly dependent upon the structure. It is possible that this structure can change over time as web pages are updated by their creator(s). The pages could even look identical, but have a completely different structure that breaks your scraping code.
So how can we deal with this? As we will see, there are several ways of searching for elements that are much better than defining explicit paths. In general, we can do this using XPath and by using the find methods of beautiful soup. We will examine both in recipes later in this chapter.
推薦閱讀
- MERN Quick Start Guide
- 光網(wǎng)絡(luò)評(píng)估及案例分析
- Oracle SOA Suite 11g Performance Tuning Cookbook
- Hands-On Full Stack Development with Spring Boot 2 and React(Second Edition)
- Learning Karaf Cellar
- Getting Started with WebRTC
- 中小型局域網(wǎng)組建、管理與維護(hù)實(shí)戰(zhàn)
- SSL VPN : Understanding, evaluating and planning secure, web/based remote access
- 面向5G-Advanced的關(guān)鍵技術(shù)
- Android UI Design
- Getting Started with Memcached
- 物聯(lián)網(wǎng)頂層設(shè)計(jì)與關(guān)鍵技術(shù)
- 一本書(shū)讀懂物聯(lián)網(wǎng)
- 轉(zhuǎn)化:提升網(wǎng)站流量和轉(zhuǎn)化率的技巧
- 區(qū)塊鏈技術(shù)與應(yīng)用:打造分布式商業(yè)新生態(tài)