code: def get_links(self, recall, timeout):
          
          for _ in range(recall):
              try:  # setting timeout
                  soup = BeautifulSoup(self.source)  # parse source
                  out_links = []
  
                  for tag in soup.findAll(["a", "link"], href=True):
                      tag["href"] = urljoin(self.url, tag["href"])
                      out_links.append(tag["href"])
  
                  return sorted(out_links)  # sort array
              except:
                  time.sleep(timeout)
docs: Gets links in page
  
          :param recall: max times to attempt to fetch url
          :param timeout: max times
          :return: array of out_links