Skip to main content

A lightweight tool for generating RSS feeds from public URLs, including news pages, search results, and JavaScript-rendered websites.

Project description

url2rss

url2rss is a lightweight Python library that converts any public web page (news pages, search results, listings) into a valid RSS XML feed.

It automatically handles both static HTML and JavaScript-rendered pages, making it easy to generate RSS feeds from sites that don’t provide one.


Installation

pip install url2rss

Basic Usage

from url2rss import url_to_rss

rss_xml = url_to_rss("https://www.aljazeera.com/search/cricket")
print(rss_xml)

The function returns a ready-to-use RSS XML string.


Save RSS to a File

from url2rss import url_to_rss

rss_xml = url_to_rss("https://globalnews.ca/?s=cricket")

with open("feed.xml", "w", encoding="utf-8") as f:
    f.write(rss_xml)

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

url2rss-0.0.2.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

url2rss-0.0.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file url2rss-0.0.2.tar.gz.

File metadata

  • Download URL: url2rss-0.0.2.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for url2rss-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b57ceaaaa09d54385f9632ea3354761fb1b733f7f5062762d8fedc3149cc78e4
MD5 c52d004a01487f71d3aa661b13943d0a
BLAKE2b-256 a6485a925561d68f005b882d408e4a1cb82bb42aa14341f8aef285822c468b2c

See more details on using hashes here.

File details

Details for the file url2rss-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: url2rss-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for url2rss-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cf886ded57e120e50ffe499b6d2058b85c23e0bc6a88d561ed24d70fc138fa7e
MD5 15f987f355cada32f307eb6d5d5869b6
BLAKE2b-256 4f0445d1b697f2d3800385c8c3b2dfba517936cb7d12a09688328750daa766b2

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