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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b24cdaef69299716b69a6a399da814e237c87fb5d7130ff9e25caf199cddea3f
|
|
| MD5 |
13f424aac43858edfd2891bd5ad91426
|
|
| BLAKE2b-256 |
ab0340accf44901e4062c7430293641f54639aee6571f384616a4074bf3e934a
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4414aa3070f4def3d24b98e991b11b2e18bd28fb0f14c0e32c1fac9b9749f777
|
|
| MD5 |
2258f3610a0ee19ba60ff32274dd17c8
|
|
| BLAKE2b-256 |
394023585dde1bf8cefcb63784fcf2a10cc45e2dcfedfe292d587c541402eab4
|