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.
A minimal RSS 2.0 generator. Follows guidelines from https://validator.w3.org/feed/docs/rss2.html
Accepts any implementation that fulfills Python's ElementTree API. Due to this, lxml
is supported.
pip install min-rss
The following script powers the RSS feed at https://nwalsh1995.github.io/rss.xml
from min_rss_gen.generator import start_rss, gen_item
import xml.etree.ElementTree
from glob import glob
from pathlib import PurePath
SITE = "https://nwalsh1995.github.io"
RSS_FILENAME = "rss.xml"
rss_items = []
# Generate all items
for f in glob("**/*.html", recursive=True):
path = PurePath(f)
title = path.with_suffix("").name.replace("-", " ").title()
rss_items.append(gen_item(title=title, link=f"{SITE}/{str(path)}"))
# Generate the <rss> XML element and subelements.
rss_xml_element = start_rss(title="nwalsh1995.github.io", link="nwalsh1995.github.io", description="A collection of thoughts.", items=rss_items)
# You can add custom subelements onto the returned <rss> element if you choose.
with open(RSS_FILENAME, "wb") as f:
f.write(xml.etree.ElementTree.tostring(rss_xml_element))
FAQs
A correct and minimal RSS 2.0 generator.
We found that min-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.