An open API service indexing awesome lists of open source software.

https://github.com/versun/feed2json

Convert RSS feed to JSON Feed
https://github.com/versun/feed2json

Last synced: about 1 year ago
JSON representation

Convert RSS feed to JSON Feed

Awesome Lists containing this project

README

          

## Feed2Json

Convert RSS feed to JSON Feed

Installation
-----------
`pip install feed2json`

Usage
-----------
```python
from feed2json import feed2json
# -----------
feed_url = "https://versun.me/feed"
json_feed:dict = feed2json(feed_url)
# -----------
feed_html = '''

Example Feed

2003-12-13T18:30:02Z

John Doe

urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6


Atom-Powered Robots Run Amok

urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a
2003-12-13T18:30:02Z
Some text.


'''
json_feed:dict = feed2json(feed_html)
# -----------
feed_xml_file = 'example_feed.xml'
json_feed:dict = feed2json(feed_xml_file)
```