Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

feed2json-2025.7.15.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

feed2json-2025.7.15-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file feed2json-2025.7.15.tar.gz.

File metadata

  • Download URL: feed2json-2025.7.15.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for feed2json-2025.7.15.tar.gz
Algorithm Hash digest
SHA256 1d9a9f869c3526ed9ea3c7e498d3fe8cb7b202a3768024287aaabec13c9de3d0
MD5 cd8565033247511459d9ce8d730ac7be
BLAKE2b-256 b6cfe6cd7061722dd1c5032c30a27cdd37ee822100a26c28e749aff4d94a8961

See more details on using hashes here.

File details

Details for the file feed2json-2025.7.15-py3-none-any.whl.

File metadata

  • Download URL: feed2json-2025.7.15-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for feed2json-2025.7.15-py3-none-any.whl
Algorithm Hash digest
SHA256 2f125751feda4c80aa6fc88261a7c960ba7b5329efe1aa2265f91a923ba04238
MD5 39826c1d260274b99feb849b6ebf8b0c
BLAKE2b-256 75d4b955b32db8b7008d83d9aa8364fbdf98da8b23d6213a87ee27d7443a5a61

See more details on using hashes here.

Supported by

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