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

Examining the Sitemap

Sitemap files are provided bywebsites to help crawlers locate their updated content without needing to crawl every web page. For further details, the sitemap standard is defined at http://www.sitemaps.org/protocol.html. Many web publishing platforms have the ability to generate a sitemap automatically. Here is the content of the  Sitemap file located in the listed robots.txt file:

<?xml version="1.0" encoding="UTF-8"?> 
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url><loc>http://example.webscraping.com/view/Afghanistan-1</loc></url>
<url><loc>http://example.webscraping.com/view/Aland-Islands-2</loc></url>
<url><loc>http://example.webscraping.com/view/Albania-3</loc></url>
...
</urlset>

This sitemap provides links to all the web pages, which will be used in the next section to build our first crawler. Sitemap files provide an efficient way to crawl a website, but need to be treated carefully because they can be missing, out-of-date, or incomplete.

主站蜘蛛池模板: 麻江县| 新郑市| 定西市| 蒙山县| 邢台市| 克什克腾旗| 德惠市| 漯河市| 大余县| 饶河县| 南京市| 兴文县| 岳阳县| 东港市| 娱乐| 民勤县| 仪陇县| 随州市| 灵璧县| 白山市| 镇宁| 饶阳县| 拉萨市| 龙陵县| 正阳县| 乐昌市| 呼和浩特市| 元谋县| 安庆市| 玉树县| 金乡县| 南雄市| 淄博市| 桑日县| 新巴尔虎右旗| 剑河县| 银川市| 同心县| 额济纳旗| 颍上县| 岗巴县|