Please use: https://rss.osmosis.zone/latest.rss for the latest news feed from Osmosis.
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.
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
-
Clone or download the repository to your local machine.
-
Navigate to the project directory.
-
Run the script using the following command:
python rss_feed_generator.py
- After running the script, an RSS feed named latest.rss will be generated in the project directory.
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.
The generated RSS feed includes the following information for each article:
- Title
- Description
- Link to the article
- Publication date
- Image enclosure (if available)
- 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!
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.