This post is from a low-reputation account and contains an unverified outbound link. Be cautious before clicking external links.

网络爬虫基础—HTTP基本原理

flashdream(25)
Published in
#cn
Words
171
Reading
1 min
Listen
Play
8y

URI/URL/URN 的联系
URI = Universal Resource Identifier 统一资源标志符
URL = Universal Resource Locator 统一资源定位符
URN = Universal Resource Name 统一资源名称
图1是三者之间关系:URL和URN是URI的子集

如以下的是NASA的LOGO链接:
[NASA] https://www.nasa.gov/sites/all/themes/custom/nasatwo/images/nasa-logo
网页链接该链接直接指向的是这个图片:

因此我们可以将该链接视为URI或者URL,目前URN在网页中很少,比如对一本书的编号:ISBN 978-7-111-39140-1为《数据挖掘概念与技术》的ISBN编号,因此我们可以将此理解为URN。大部分时间我们讲述的URL和URI是一个意思。

网络爬虫基础—HTTP基本原理 | Ecency