Skip to main content

Pythonic rss parser

Project description

Rss parser

Downloads Downloads Downloads

PyPI version Python versions Wheel status License GitHub Pages

Pypi publish

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

MIT

Project details


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

If you're not sure about the file name format, learn more about wheel file names.

rss_parser-0.1.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file rss_parser-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: rss_parser-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6

File hashes

Hashes for rss_parser-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b760657f72979b3d4c03c9fc27644d686c7f0138496f692c39439ffe28b05c5c
MD5 263880440dd751edfdce425a56ca7562
BLAKE2b-256 96f7ebbfd1cc30c973535bd7c2dcd3d519761168aa08de5bc6d4f0ef139bc1b3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page