code: def links(self) -> _Links:
          
  
          def gen():
              for link in self.find('a'):
  
                  try:
                      href = link.attrs['href'].strip()
                      if href and not (href.startswith('#') and self.skip_anchors) and not href.startswith(('javascript:', 'mailto:')):
                          yield href
                  except KeyError:
                      pass
  
          return set(gen())
docs: All found links on page, in as–is form.