Convert RSS feed to JSON Feed
Project description
Feed2Json
Convert RSS feed to JSON Feed
Installation
pip install feed2json
Usage
from feed2json import feed2json
# -----------
feed_url = "https://versun.me/feed"
json_feed:dict = feed2json(feed_url)
# -----------
feed_html = '''
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Example Feed</title>
<link href="http://example.org/"/>
<updated>2003-12-13T18:30:02Z</updated>
<author>
<name>John Doe</name>
</author>
<id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>
<entry>
<title>Atom-Powered Robots Run Amok</title>
<link href="http://example.org/2003/12/13/atom03"/>
<id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
<updated>2003-12-13T18:30:02Z</updated>
<summary>Some text.</summary>
</entry>
</feed>
'''
json_feed:dict = feed2json(feed_html)
# -----------
feed_xml_file = 'example_feed.xml'
json_feed:dict = feed2json(feed_xml_file)
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
feed2json-2024.4.29.tar.gz
(5.0 kB
view details)
Built Distribution
File details
Details for the file feed2json-2024.4.29.tar.gz
.
File metadata
- Download URL: feed2json-2024.4.29.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71394404309b476e63627e79e844cae74a03077542911ca978be913487ed45b9 |
|
MD5 | 69ded9819c789b29a4f8b38cee50354e |
|
BLAKE2b-256 | fec62306ea4de6f8a0873945da37aedb3eda99d064af497b5ef5c8388f23fd2d |
File details
Details for the file feed2json-2024.4.29-py3-none-any.whl
.
File metadata
- Download URL: feed2json-2024.4.29-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85d2b7e48bbf7ff2bd4120c8b10b69e01e21ffded58b0e9c2154cc19519ec59e |
|
MD5 | 691f405bf2ced12f8cf74b47108e5a28 |
|
BLAKE2b-256 | 12b1e632a9c4248bf7990a5fd3267ec9ea27a713e96c82f0a3519c3e988dbaea |