Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/osmosis-labs/rss-news
Osmosis RSS News Feed
https://github.com/osmosis-labs/rss-news
Last synced: about 2 months ago
JSON representation
Osmosis RSS News Feed
- Host: GitHub
- URL: https://github.com/osmosis-labs/rss-news
- Owner: osmosis-labs
- Created: 2023-05-09T17:06:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-29T12:04:20.000Z (2 months ago)
- Last Synced: 2024-10-29T14:34:43.794Z (2 months ago)
- Language: Python
- Homepage: https://rss.osmosis.zone/latest.rss
- Size: 438 KB
- Stars: 2
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
- [requests](https://docs.python-requests.org/en/master/)
- [BeautifulSoup](https://www.crummy.com/software/BeautifulSoup/)
- [feedgen](https://feedgen.kiesow.be/)
- [pytz](https://pythonhosted.org/pytz/)You can install these libraries using the following command:
```bash
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:
```bash
python rss_feed_generator.py
```
4. 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.