笨鸟编程-零基础入门Pyhton教程

 找回密码
 立即注册

链接提取器

发布者: 笨鸟自学网



链接

Link对象表示LinkExtractor提取的链接。

使用下面的锚定标记示例来说明参数:

<a href="https://example.com/nofollow.html#foo" rel="nofollow">Dont follow this one</a>
参数
  • url -- 在定位标记中链接到的绝对url。从样本来看,这是 https://example.com/nofollow.html .

  • text -- 锚定标记中的文本。从样本来看,这是 Dont follow this one .

  • fragment -- url中哈希符号后面的部分。从样本来看,这是 foo .

  • nofollow -- 中存在或不存在nofollow值的指示 rel 定位标记的属性。

12
上一篇:请求和响应下一篇:设置

Archiver|手机版|笨鸟自学网 ( 粤ICP备20019910号 )

GMT+8, 2024-9-8 11:17 , Processed in 0.022787 second(s), 17 queries .

© 2001-2020

返回顶部