官术网_书友最值得收藏!

Crawling your first website

In order to scrape a website, we first need to download its web pages containing the data of interest, a process known as crawling. There are a number of approaches that can be used to crawl a website, and the appropriate choice will depend on the structure of the target website. This chapter will explore how to download web pages safely, and then introduce the following three common approaches to crawling a website:

  • Crawling a sitemap
  • Iterating each page using database IDs 
  • Following web page links

We have so far used the terms scraping and crawling interchangeably, but let's take a moment to define the similarities and differences in these two approaches.

主站蜘蛛池模板: 大洼县| 高雄县| 沙田区| 彰化县| 房产| 息烽县| 怀宁县| 安达市| 马龙县| 汝南县| 楚雄市| 民乐县| 姚安县| 都兰县| 永定县| 那曲县| 安义县| 璧山县| 额济纳旗| 手游| 遂平县| 吴旗县| 四子王旗| 临沭县| 石泉县| 兴安盟| 奉化市| 景东| 巍山| 乐昌市| 扬中市| 吉水县| 岑溪市| 珲春市| 库尔勒市| 将乐县| 定州市| 芦溪县| 依兰县| 仲巴县| 玉溪市|