O365BaseLoader(
self,
**kwargs: Any = {},
)Base class for all loaders that uses O365 Package
Settings for the Office365 API client.
Whether to authenticate with a token or not. Defaults to False.
Number of bytes to retrieve from each api call to the server. int or 'auto'.
Should the loader recursively load subfolders?
Only fetch documents modified since given datetime. The datetime object must be timezone aware.
Provide custom handlers for MimeTypeBasedParser.
Pass a dictionary mapping either file extensions (like "doc", "pdf", etc.) or MIME types (like "application/pdf", "text/plain", etc.) to parsers. Note that you must use either file extensions or MIME types exclusively and cannot mix them.
Do not include the leading dot for file extensions.
Example using file extensions:
handlers = {
"doc": MsWordParser(),
"pdf": PDFMinerParser(),
"txt": TextParser()
}
Example using MIME types:
handlers = {
"application/msword": MsWordParser(),
"application/pdf": PDFMinerParser(),
"text/plain": TextParser()
}