Pythonic rss parser
Project description
Rss parser
About
rss-parser
is typed python RSS parsing module built using BeautifulSoup
and pydantic
Installation
pip install rss-parser
or
git clone https://github.com/dhvcc/rss-parser.git
cd rss-parser
pip install .
Usage
from rss_parser import Parser
from requests import get
rss_url = "https://feedforall.com/sample.xml"
xml = get(rss_url)
# Limit feed output to 5 items
# To disable limit simply do not provide the argument or use None
parser = Parser(xml=xml.content, limit=5)
feed = parser.parse()
# Print out feed meta data
print(feed.language)
print(feed.version)
# Iteratively print feed items
for item in feed.feed:
print(item.title)
print(item.description)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for rss_parser-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b760657f72979b3d4c03c9fc27644d686c7f0138496f692c39439ffe28b05c5c |
|
MD5 | 263880440dd751edfdce425a56ca7562 |
|
BLAKE2b-256 | 96f7ebbfd1cc30c973535bd7c2dcd3d519761168aa08de5bc6d4f0ef139bc1b3 |