llama-index-readers-hatena-blog


Namellama-index-readers-hatena-blog JSON
Version 0.2.0 PyPI version JSON
download
home_pageNone
Summaryllama-index readers hatena_blog integration
upload_time2024-08-22 06:16:11
maintainerShoya SHIRAKI
docs_urlNone
authorYour Name
requires_python<4.0,>=3.8.1
licenseMIT
keywords blog hatena
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Hatena Blog Loader

```bash
pip install llama-index-readers-hatena-blog
```

This loader fetches article from your own [Hatena Blog](https://hatenablog.com/) blog posts using the AtomPub API.

You can get AtomPub info from the admin page after logging into Hatena Blog.

## Usage

Here's an example usage of the HatenaBlogReader.

```python
import os

from llama_index.readers.hatena_blog import HatenaBlogReader

root_endpoint = os.getenv("ATOM_PUB_ROOT_ENDPOINT")
api_key = os.getenv("ATOM_PUB_API_KEY")
username = os.getenv("HATENA_BLOG_USERNAME")

reader = HatenaBlogReader(
    root_endpoint=root_endpoint, api_key=api_key, username=username
)
documents = reader.load_data()
```

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-hatena-blog",
    "maintainer": "Shoya SHIRAKI",
    "docs_url": null,
    "requires_python": "<4.0,>=3.8.1",
    "maintainer_email": null,
    "keywords": "blog, hatena",
    "author": "Your Name",
    "author_email": "you@example.com",
    "download_url": "https://files.pythonhosted.org/packages/25/32/2086c56aa59a30cb60144911f1fd9c5cff7c37c58c2d98baec162d5c4f5c/llama_index_readers_hatena_blog-0.2.0.tar.gz",
    "platform": null,
    "description": "# Hatena Blog Loader\n\n```bash\npip install llama-index-readers-hatena-blog\n```\n\nThis loader fetches article from your own [Hatena Blog](https://hatenablog.com/) blog posts using the AtomPub API.\n\nYou can get AtomPub info from the admin page after logging into Hatena Blog.\n\n## Usage\n\nHere's an example usage of the HatenaBlogReader.\n\n```python\nimport os\n\nfrom llama_index.readers.hatena_blog import HatenaBlogReader\n\nroot_endpoint = os.getenv(\"ATOM_PUB_ROOT_ENDPOINT\")\napi_key = os.getenv(\"ATOM_PUB_API_KEY\")\nusername = os.getenv(\"HATENA_BLOG_USERNAME\")\n\nreader = HatenaBlogReader(\n    root_endpoint=root_endpoint, api_key=api_key, username=username\n)\ndocuments = reader.load_data()\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 hatena_blog integration",
    "version": "0.2.0",
    "project_urls": null,
    "split_keywords": [
        "blog",
        " hatena"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4cf1ec313894cb6e0a108f549a5c06c5d0520f209459db7b6cecf1103784fb90",
                "md5": "52918be17f189ff4ebc6bbbdf389e275",
                "sha256": "fb8497515b78c13a80345ca654d477c2c89a39ee11d6423daaab6c5dcc3ce4b5"
            },
            "downloads": -1,
            "filename": "llama_index_readers_hatena_blog-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "52918be17f189ff4ebc6bbbdf389e275",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8.1",
            "size": 3029,
            "upload_time": "2024-08-22T06:16:09",
            "upload_time_iso_8601": "2024-08-22T06:16:09.929760Z",
            "url": "https://files.pythonhosted.org/packages/4c/f1/ec313894cb6e0a108f549a5c06c5d0520f209459db7b6cecf1103784fb90/llama_index_readers_hatena_blog-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "25322086c56aa59a30cb60144911f1fd9c5cff7c37c58c2d98baec162d5c4f5c",
                "md5": "45e5b0e78c78d23267a682ada75c9e1d",
                "sha256": "4a31323c9585876d0c94a6675de0cb539d12cc3ef747a404299fd89ff72ae077"
            },
            "downloads": -1,
            "filename": "llama_index_readers_hatena_blog-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "45e5b0e78c78d23267a682ada75c9e1d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8.1",
            "size": 2791,
            "upload_time": "2024-08-22T06:16:11",
            "upload_time_iso_8601": "2024-08-22T06:16:11.401819Z",
            "url": "https://files.pythonhosted.org/packages/25/32/2086c56aa59a30cb60144911f1fd9c5cff7c37c58c2d98baec162d5c4f5c/llama_index_readers_hatena_blog-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-22 06:16:11",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "llama-index-readers-hatena-blog"
}
        
Elapsed time: 4.44761s