class Link:
Link objects represent an extracted link by the LinkExtractor.
Using the anchor tag sample below to illustrate the parameters:
<a href="https://example.com/nofollow.html#foo" rel="nofollow">Dont follow this one</a>
Parameters | |
url | the absolute url being linked to in the anchor tag. From the sample, this is https://example.com/nofollow.html. |
text | the text in the anchor tag. From the sample, this is Dont follow this one. |
fragment | the part of the url after the hash symbol. From the sample, this is foo. |
nofollow | an indication of the presence or absence of a nofollow value in the rel attribute of the anchor tag. |
Method | __eq__ |
Undocumented |
Method | __hash__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Class Variable | __slots__ |
Undocumented |
Instance Variable | fragment |
Undocumented |
Instance Variable | nofollow |
Undocumented |
Instance Variable | text |
Undocumented |
Instance Variable | url |
Undocumented |