fix RecursiveUrlLoader (#8582)

Description: the recursive url loader does not fully crawl for all urls
under base url
Maintainer: @baskaryan
pull/8026/head^2
Ryan Sloan 1 year ago committed by GitHub
parent f81e613086
commit b786335dd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save