Metadata-Version: 2.4
Name: llama-index-readers-remote-depth
Version: 0.4.0
Summary: llama-index readers remote_depth integration
Author-email: Your Name <you@example.com>
Maintainer: simonMoisselin
License-Expression: MIT
License-File: LICENSE
Keywords: hosted,multiple,url
Requires-Python: <3.12,>=3.9
Requires-Dist: llama-index-core<0.14,>=0.13.0
Requires-Dist: llama-index-readers-remote<0.5,>=0.4.0
Description-Content-Type: text/markdown

# Remote Page/File Loader

```bash
pip install llama-index-readers-remote-depth
```

This loader makes it easy to extract the text from the links available in a webpage URL, and extract the links presents in the page. It's based on `RemoteReader` (reading single page), that is based on `SimpleDirectoryReader` (parsing the document if file is a pdf, etc). It is an all-in-one tool for (almost) any group of urls.

You can try with this MIT lecture link, it will be able to extract the syllabus, the PDFs, etc:
`https://ocw.mit.edu/courses/5-05-principles-of-inorganic-chemistry-iii-spring-2005/pages/syllabus/`

## Usage

You need to specify the parameter `depth` to specify how many levels of links you want to extract. For example, if you want to extract the links in the page, and the links in the links in the page, you need to specify `depth=2`.

```python
from llama_index.readers.remote_depth import RemoteDepthReader

loader = RemoteDepthReader()
documents = loader.load_data(
    url="https://ocw.mit.edu/courses/5-05-principles-of-inorganic-chemistry-iii-spring-2005/pages/syllabus/"
)
```

This loader is designed to be used as a way to load data into [LlamaIndex](https://github.com/run-llama/llama_index/).
