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
- Host: GitHub
- URL: https://github.com/versun/feed2json
- Owner: versun
- License: mit
- Created: 2024-04-24T21:55:46.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-29T03:50:34.000Z (about 2 years ago)
- Last Synced: 2025-03-10T17:06:15.132Z (about 1 year ago)
- Language: Python
- Homepage: https://pypi.org/project/feed2json/
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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)
```