Spaces:
Build error
Build error
DEBUG: List Chatbots
Browse files- 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
|