Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/icetemple/genrss
RSS generator for python
https://github.com/icetemple/genrss
feed feed-generator python rss rss-generator xml
Last synced: 22 days ago
JSON representation
RSS generator for python
- Host: GitHub
- URL: https://github.com/icetemple/genrss
- Owner: icetemple
- License: mit
- Created: 2019-07-23T17:48:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-09-27T12:26:25.000Z (about 2 years ago)
- Last Synced: 2024-07-30T21:06:01.404Z (4 months ago)
- Topics: feed, feed-generator, python, rss, rss-generator, xml
- Language: Python
- Homepage: https://genrss.readthedocs.io/en/latest/
- Size: 71.3 KB
- Stars: 16
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.rst
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# genrss
[![PyPI version](https://badge.fury.io/py/genrss.svg)](https://badge.fury.io/py/genrss)
[![Build Status](https://travis-ci.org/icetemple/genrss.svg?branch=master)](https://travis-ci.org/icetemple/genrss)
[![Coverage Status](https://coveralls.io/repos/github/icetemple/genrss/badge.svg?branch=master)](https://coveralls.io/github/icetemple/genrss?branch=master)
[![Documentation Status](https://readthedocs.org/projects/genrss/badge/?version=latest)](https://genrss.readthedocs.io/en/latest/?badge=latest)RSS generator for python
## Installing
genrss using lxml library that required:
* libxml2 version 2.9.2 or later.
* libxslt version 1.1.27 or later.To install the required development packages of these dependencies on Linux systems,
use your distribution specific installation tool, e.g. apt-get on Debian/Ubuntu:```bash
sudo apt-get install libxml2-dev libxslt-dev
```Install and update using pip:
```bash
pip install -U genrss
```## A Simple Example
```python
from datetime import datetime
from genrss import GenRSSfeed = GenRSS(title='SmartFridge',
site_url='https://smartfridge.me',
feed_url='https://smartfridge.me/feed/rss.xml')feed.item(title='black buns for burgers',
description='For the first time black burgers appeared ' \
'in Japan. Unusual dark color buns complemented ' \
'with black cheese and sauce. Over time, the dish ' \
'has conquered the whole world. The main secret ' \
'ingredient in popular buns is the most common... ' \
'charcoal!',
url='https://smartfridge.me/recipe/316b28-chernye-bulochki-dlya-burgerov/',
author='@smartfridge',
categories=['baking'],
pub_date=datetime.utcnow())xml = feed.xml()
```## Links
Documentation: [https://genrss.readthedocs.io/en/latest/](https://genrss.readthedocs.io/en/latest/)