
Security News
Opengrep Adds Apex Support and New Rule Controls in Latest Updates
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
A simple RSS to Gemlog (Gemini log) converter.
The original version is developed for SPIP, but I am going to also work on a version for WordPress.
A working example for the SPIP version of this library can be ran using the example.py class. It also allows for a quick preview of the code without having to go into gemlog_from_rss/examples.py.
To run this code the following structure is required:
from gemlog_from_rss.spip import MainPage, Page
import xml.etree.ElementTree as ET
import shutil
from pathlib import Path
Path("resources").mkdir(parents=False, exist_ok=True)
main_page = MainPage(feed="https://url.to.feed")
Path(main_page.root).mkdir(parents=True, exist_ok=True)
tree = ET.parse("resources/all_posts.xml")
root = tree.getroot()
main_page.root = root
# Adding those pages is optional!
page = Page()
page.download_html("http://url.to.html.resource/file.html")
page.fetch_content()
page_2 = Page()
page_2.download_html("http://url.to.html.resource/file.html")
page_2.fetch_content()
main_page.add_page(page)
main_page.add_page(page_2)
# alternatively:
main_page.add_pages([page, page_2])
main_page.add_posts()
main_page.create_files()
with open(f"{main_page.root_dir}/index.gmi", "w") as f:
f.write(main_page.make_main_page())
# Remove temporary resources directory
try:
shutil.rmtree('resources')
except OSError as e:
print("Error: %s : %s" % ('resources', e.strerror))
To run the Gemini server, please use Gemini server software. This package doesn't come with a Gemini server, but I recommend agate. It is super easy to install and run, and you can make this library work with it by outputting the articles and index.gmi to a directory used by agate.
Please make sure that the files outputted by gemlog_from_rss are either located in the root directory of your Gemini server or that they are linked to from your main Gemini page.
This library will be developed further. If you want to contribute to development, please fork this repository and start a pull request when you are ready to submit.
FAQs
A package that allows for converting RSS feeds into Gemlogs (Gemini blogs).
We found that gemlog-from-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
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.