class documentation

class Link:

View In Hierarchy

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
urlthe absolute url being linked to in the anchor tag. From the sample, this is https://example.com/nofollow.html.
textthe text in the anchor tag. From the sample, this is Dont follow this one.
fragmentthe part of the url after the hash symbol. From the sample, this is foo.
nofollowan 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
def __eq__(self, other):

Undocumented

def __hash__(self):

Undocumented

def __init__(self, url, text='', fragment='', nofollow=False):

Undocumented

def __repr__(self):

Undocumented

__slots__: list[str] =

Undocumented

fragment =

Undocumented

nofollow =

Undocumented

text =

Undocumented

url =

Undocumented