llama-index-readers-remote-depth


Namellama-index-readers-remote-depth JSON
Version 0.2.0 PyPI version JSON
download
home_pageNone
Summaryllama-index readers remote_depth integration
upload_time2024-08-22 14:32:10
maintainersimonMoisselin
docs_urlNone
authorYour Name
requires_python<3.12,>=3.8.1
licenseMIT
keywords hosted multiple url
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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/).

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "llama-index-readers-remote-depth",
    "maintainer": "simonMoisselin",
    "docs_url": null,
    "requires_python": "<3.12,>=3.8.1",
    "maintainer_email": null,
    "keywords": "hosted, multiple, url",
    "author": "Your Name",
    "author_email": "you@example.com",
    "download_url": "https://files.pythonhosted.org/packages/79/c2/f4f2f9d7b0f5b2b014c47c819c6df63f11b16cfda35c4abcd792c6407626/llama_index_readers_remote_depth-0.2.0.tar.gz",
    "platform": null,
    "description": "# Remote Page/File Loader\n\n```bash\npip install llama-index-readers-remote-depth\n```\n\nThis 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.\n\nYou can try with this MIT lecture link, it will be able to extract the syllabus, the PDFs, etc:\n`https://ocw.mit.edu/courses/5-05-principles-of-inorganic-chemistry-iii-spring-2005/pages/syllabus/`\n\n## Usage\n\nYou 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`.\n\n```python\nfrom llama_index.readers.remote_depth import RemoteDepthReader\n\nloader = RemoteDepthReader()\ndocuments = loader.load_data(\n    url=\"https://ocw.mit.edu/courses/5-05-principles-of-inorganic-chemistry-iii-spring-2005/pages/syllabus/\"\n)\n```\n\nThis loader is designed to be used as a way to load data into [LlamaIndex](https://github.com/run-llama/llama_index/).\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "llama-index readers remote_depth integration",
    "version": "0.2.0",
    "project_urls": null,
    "split_keywords": [
        "hosted",
        " multiple",
        " url"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0e111dfc63ac2682aaeb9e172023764a9ac08cfa8fd20577417b75e66485fc35",
                "md5": "34af49900a1d16bf5d597b18f9d6845a",
                "sha256": "abbefbe94cb082acdcf0421a5ceb09929308c69c526338819a6eeb790d7b7e6b"
            },
            "downloads": -1,
            "filename": "llama_index_readers_remote_depth-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "34af49900a1d16bf5d597b18f9d6845a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.12,>=3.8.1",
            "size": 3482,
            "upload_time": "2024-08-22T14:32:08",
            "upload_time_iso_8601": "2024-08-22T14:32:08.716445Z",
            "url": "https://files.pythonhosted.org/packages/0e/11/1dfc63ac2682aaeb9e172023764a9ac08cfa8fd20577417b75e66485fc35/llama_index_readers_remote_depth-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "79c2f4f2f9d7b0f5b2b014c47c819c6df63f11b16cfda35c4abcd792c6407626",
                "md5": "552f726bbff6fe0d88cc7b5628828b7b",
                "sha256": "bfded5a5c633b9668d2515888a925060ad7ec58e8b6a0bc1da44fb81e46d3bd0"
            },
            "downloads": -1,
            "filename": "llama_index_readers_remote_depth-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "552f726bbff6fe0d88cc7b5628828b7b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.12,>=3.8.1",
            "size": 3220,
            "upload_time": "2024-08-22T14:32:10",
            "upload_time_iso_8601": "2024-08-22T14:32:10.602656Z",
            "url": "https://files.pythonhosted.org/packages/79/c2/f4f2f9d7b0f5b2b014c47c819c6df63f11b16cfda35c4abcd792c6407626/llama_index_readers_remote_depth-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-22 14:32:10",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "llama-index-readers-remote-depth"
}
        
Elapsed time: 0.29682s