Skip to content

osmosis-labs/rss-news

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Osmosis RSS feed

Please use: https://rss.osmosis.zone/latest.rss for the latest news feed from Osmosis.

Osmosis Blog RSS Feed Generator Script

This script fetches the latest articles from the Osmosis blog website and generates an RSS feed with article details such as title, description, publication date, and image. The generated RSS feed can be saved to a file for consumption by RSS readers or other feed-consuming applications.

Prerequisites

Before running the script, ensure you have the required libraries installed:

You can install these libraries using the following command:

pip install requests beautifulsoup4 feedgen pytz

Usage

  1. Clone or download the repository to your local machine.

  2. Navigate to the project directory.

  3. Run the script using the following command:

python rss_feed_generator.py
  1. After running the script, an RSS feed named latest.rss will be generated in the project directory.

Configuration

Before running the script, you might want to customize the following variables in the script according to your needs:

  • url: The URL of the blog page you want to fetch articles from.
  • fg.title(): Title of the generated RSS feed.
  • fg.link(href=url, rel="alternate"): Link to the original blog page.
  • fg.description(): Description of the RSS feed.

Generated RSS Feed

The generated RSS feed includes the following information for each article:

  • Title
  • Description
  • Link to the article
  • Publication date
  • Image enclosure (if available)

Note

  • Ensure you respect the terms of use of the website you are scraping.
  • This script assumes a specific HTML structure for the blog articles. If the structure changes, the script may need modifications.

Feel free to modify and adapt the script as needed for your use case. Happy generating!

Osmosis RSS Feed Generator GitHub Action

This GitHub Action rss_gen.yml in the github folder scrapes the osmosis blog page, extracts relevant information such as titles, descriptions, dates, URLs, and images, and generates an RSS feed in XML format.

Ensure to adjust the paths and filenames to match your repository's structure.