fix RecursiveUrlLoader (#8582)

Description: the recursive url loader does not fully crawl for all urls
under base url
Maintainer: @baskaryan
This commit is contained in:
Ryan Sloan 2023-08-03 19:51:57 -04:00 committed by GitHub
parent f81e613086
commit b786335dd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,9 +92,7 @@ class RecursiveUrlLoader(BaseLoader):
yield from loaded_link
else:
yield loaded_link
# If the link is a directory (w/ children) then visit it
if link.endswith("/"):
yield from self.get_child_links_recursive(link, visited)
yield from self.get_child_links_recursive(link, visited)
return visited