RSS Parser and Collection for Render Engine
Project description
render-engine-rss
Render-Engine-RSS is a render-engine custom parser that enables you to create a collection based on the contents of an RSS Feed.
This is especially good when you're working with a podcast or newsletter service.
NOTE This custom collection is read-only and does not create local copies of the parsed feeds
Parsers
Render Engine RSS Comes with 1 CustomCollection Collection Object and 2 PageParsers
RSSCollection and RSSFeedPageParser
The RSSCollection object is the most frequent way to fetch your feed.
The default parser for this collection is the RSSFeedPageParser which parses individual entries into Page objects based on their RSS Metadata.
Set your content_path
to a url or local file path.
from render_engine.site import Site
from render_engine_rss.collection import RSSCollection
app = Site()
@app.collection
class Newsletter(RSSCollection):
routes = ['newsletter']
content_path = "https://buttondown.email/kjaymiller/rss"
The PodcastPageParser
NOTE You can also use the PodcastPageParser to index videos from a YouTube channel. This usage is experimental and may not be maintained in the long term.
This extension was originally designed to create a local collection for a few podcasts. The PodcastPageParser is designed to process feeds designed for podcasts.
To use, pass in the PodcastPageParser to your collection.
from render_engine_rss.collection import RSSCollection
from render_engine_rss.parsers import PodcastPageParser
@app.collection
class Conduit(RSSCollection):
PageParser = PodcastPageParser
routes = ['conduit']
content_path = "https://www.relay.fm/conduit/feed"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file render_engine_rss-2023.10.1.tar.gz
.
File metadata
- Download URL: render_engine_rss-2023.10.1.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e30e8d7421083ca40eae191f04573acf619295a4260406596bbe4c0fb34b3a11 |
|
MD5 | cdd64f43d0e1dcbd5d9636ce86c54a26 |
|
BLAKE2b-256 | d6e9b9b49b6f70a24f70308916e9b30a59570f92f9801e440010023d7b58629a |
File details
Details for the file render_engine_rss-2023.10.1-py3-none-any.whl
.
File metadata
- Download URL: render_engine_rss-2023.10.1-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5890337c264ac9e0ebc59c573eb4136530b98f83c0692f7c105a9ebeeef3e0c9 |
|
MD5 | 84d05db3f952d6a2ed6e0e7c5172a161 |
|
BLAKE2b-256 | 0a7cbd7216d2cb8f0ca012689d391fe47377b3281a9439ed2a07d56af2cf07eb |