![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
RSS web feeds swiss army knife
pip install swiss-rss
import asyncio
from swiss_rss.web_feeds import parse_feed_from_url, discover_feed
async def main():
try:
# Find and parse a feed
feed_url = await discover_feed("https://2ality.com")
if not feed_url:
print("No feed found")
return
print(f"Found feed: {feed_url}")
feed = await parse_feed_from_url(feed_url)
# Access feed data
print(f"Title: {feed.title}")
if feed.items:
print(f"Latest post: {feed.items[0].title}")
except Exception as e:
print(f"Error: {e}")
asyncio.run(main())
from swiss_rss.favicons.favicon_parser import download_favicon
try:
# Download and convert favicon to 32x32 PNG
favicon_data = download_favicon("https://example.com")
if favicon_data:
with open("favicon.png", "wb") as f:
f.write(favicon_data)
except Exception as e:
print(f"Error downloading favicon: {e}")
from swiss_rss.opml.opml_parser import parse_opml
try:
with open("feeds.opml") as f:
feeds = parse_opml(f.read())
for feed in feeds:
print(f"Feed: {feed.title} ({feed.xml_url})")
except Exception as e:
print(f"Error parsing OPML: {e}")
from swiss_rss.timestamps.timestamp_parser import parse_date
# Supports RFC 822, ISO 8601 and other common formats
date = parse_date("Sat, 03 Jun 2023 10:00:00 GMT")
print(f"Parsed date: {date}")
from swiss_rss.web_feeds import parse_feed, FeedInfo, FeedItem
# Parse feed content directly
feed_content = '''<?xml version="1.0"?>
<rss version="2.0">
<!-- RSS content here -->
</rss>'''
feed = parse_feed(feed_content)
# Access additional fields
for item in feed.items:
print(f"Author: {item.author}")
print(f"ID: {item.id}")
from swiss_rss.favicons.favicon_parser import (
convert_to_png,
resize_favicon,
decode_base64_image
)
# Convert image to PNG
png_data = convert_to_png(image_data)
# Resize favicon with custom size
resized_data = resize_favicon(favicon_data, size=64)
# Handle base64 encoded images
image_data = decode_base64_image("data:image/png;base64,...")
git clone https://github.com/aluxian/swiss-rss.git
cd swiss-rss
uv venv
source .venv/bin/activate
uv sync
uv run ruff check .
uv run pytest
uvx --python 3.12 --from 'aider-chat[playwright]' --with 'aider-chat[help]' aider
FAQs
RSS web feeds swiss army knife
We found that swiss-rss demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.