Rauhan commited on
Commit
02f298e
·
1 Parent(s): 9b6b7e0

DEBUG: List Chatbots

Browse files
Files changed (1) hide show
  1. functions.py +1 -1
functions.py CHANGED
@@ -286,7 +286,7 @@ def getLinks(url: str, timeout=30):
286
  links.append(urljoin(url + "/", anchor.attrs["href"]))
287
  else:
288
  pass
289
- links = list(set(links))
290
  else:
291
  continue
292
  return links
 
286
  links.append(urljoin(url + "/", anchor.attrs["href"]))
287
  else:
288
  pass
289
+ links = list(set([link for link in links if url in link]))
290
  else:
291
  continue
292
  return links