parameters: (self, rels=('homepage', 'download'))
docstring: Yields all links with the given relations
docstring_summary: Yields all links with the given relations
docstring_tokens: Yields all links with the given relations
function: def rel_links(self, rels=('homepage', 'download')):
          """Yields all links with the given relations"""
          rels = set(rels)
  
          for anchor in self.parsed.findall(".//a"):
              if anchor.get("rel") and anchor.get("href"):
                  found_rels = set(anchor.get("rel").split())
                  # Determine the intersection between what rels were found and
                  #   what rels were being looked for
                  if found_rels & rels:
                      href = anchor.get("href")
                      url = self.clean_link(
                          urllib_parse.urljoin(self.base_url, href)
                      )
                      yield Link(url, self, trusted=False)
function_tokens: def rel_links ( self , rels = ( 'homepage' , 'download' ) ) : rels = set ( rels ) for anchor in self . parsed . findall ( ".//a" ) : if anchor . get ( "rel" ) and anchor . get ( "href" ) : found_rels = set ( anchor . get ( "rel" ) . split ( ) ) # Determine the intersection between what rels were found and #   what rels were being looked for if found_rels & rels : href = anchor . get ( "href" ) url = self . clean_link ( urllib_parse . urljoin ( self . base_url , href ) ) yield Link ( url , self , trusted = False )