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.1.tar.gz (3.3 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.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: url2rss-0.0.1.tar.gz
  • Upload date:
  • Size: 3.3 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.1.tar.gz
Algorithm Hash digest
SHA256 b24cdaef69299716b69a6a399da814e237c87fb5d7130ff9e25caf199cddea3f
MD5 13f424aac43858edfd2891bd5ad91426
BLAKE2b-256 ab0340accf44901e4062c7430293641f54639aee6571f384616a4074bf3e934a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: url2rss-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4414aa3070f4def3d24b98e991b11b2e18bd28fb0f14c0e32c1fac9b9749f777
MD5 2258f3610a0ee19ba60ff32274dd17c8
BLAKE2b-256 394023585dde1bf8cefcb63784fcf2a10cc45e2dcfedfe292d587c541402eab4

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