Wordpress Loader
pip install llama-index-readers-wordpress
This loader fetches the text from Wordpress blog posts using the Wordpress API. It also uses the BeautifulSoup library to parse the HTML and extract the text from the articles.
Usage
To use this loader, you need to pass base url of the Wordpress installation
(e.g. https://www.mysite.com) and optionally a username, and an application
password for the user (more about application passwords
here)
from llama_index.readers.wordpress import WordpressReader
loader = WordpressReader(
url="https://www.mysite.com",
username="my_username",
password="my_password",
)
documents = loader.load_data()
This loader is designed to be used as a way to load data into LlamaIndex.
Pages and Posts
Be default, the loader retrieves both Wordpress pages (static content) and
posts (blog entries) from the target site. This behavior can be configured
by setting get_pages=False or get_posts=False when initializing the
WordpressReader object.
Additional Custom Post types
To scrape additional custom endpoints beside posts and pages, you can specify additional_post_types as a comma-separated list (e.g., additional_post_types="custom-pages,custom-posts") when initializing the WordpressReader object.
from llama_index.readers.wordpress import WordpressReader
loader = WordpressReader(
url="https://www.mysite.com",
username="my_username",
password="my_password",
additional_post_types="webiners,podcasts",
)
documents = loader.load_data()
Metadata
Release files for llama-index-readers-wordpress 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llama_index_readers_wordpress-0.6.0.tar.gz | 5.0 kB | Without provenance | Details for llama_index_readers_wordpress-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llama_index_readers_wordpress-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for llama_index_readers_wordpress-0.6.0-py3-none-any.whl |
Total release size: 9.7 kB
Release files / llama_index_readers_wordpress-0.6.0.tar.gz
| Download URL | llama_index_readers_wordpress-0.6.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
973a4c54afe3e9e9983e10a5e108632844b5ea12387384708c2d95d63aa564ef
|
|
BLAKE2b-256 checksum How to use checksums |
fe132e1e7b6b8583aa9fa53626847c8e28769e35c72a0fd0ff74927b3ca85f62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / llama_index_readers_wordpress-0.6.0-py3-none-any.whl
| Download URL | llama_index_readers_wordpress-0.6.0-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
60d45be56055007dd5a4bba510189a4994c3f797b4182a6518b629077c73728d
|
|
BLAKE2b-256 checksum How to use checksums |
215e4ac6c8bf61df26dd6d84a3c3f3719e9d566990c81ebf7f15faad0a4e7a13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for llama-index-readers-wordpress 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.