Typed 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 Distribution
rss-parser-0.2.2.tar.gz
(16.1 kB
view hashes)
Built Distribution
rss_parser-0.2.2-py3-none-any.whl
(16.1 kB
view hashes)
Close
Hashes for rss_parser-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29ad8fcd761412e715e0ed19ac8204d9a0643a9db160657340fd8864aa2a83c6 |
|
MD5 | ccb53e7c957aff769c6e8541c884c730 |
|
BLAKE2b-256 | 4a1949ad33080a6535d96c4311f08cd20a0bb05113284de02ec031249b9d8295 |