elm.web.search.run.load_docs
- async load_docs(sources, file_loader)[source]
Load a document for each input URL
- Parameters:
sources (iterable of str) – Iterable of URL’s or filepaths (as strings) to fetch.
file_loader (class:elm.web.file_loader.AsyncWebFileLoader) – File loader instance used to fetch content from URL’s.
- Returns:
list – List of non-empty document instances containing information from the URL’s. If a URL could not be fetched (i.e. document instance is empty), it will not be included in the output list.