https://github.com/icetemple/genrss
RSS generator for python
https://github.com/icetemple/genrss
feed feed-generator python rss rss-generator xml
Last synced: over 1 year 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 (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-09-27T12:26:25.000Z (almost 4 years ago)
- Last Synced: 2024-07-30T21:06:01.404Z (almost 2 years 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
[](https://badge.fury.io/py/genrss)
[](https://travis-ci.org/icetemple/genrss)
[](https://coveralls.io/github/icetemple/genrss?branch=master)
[](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 GenRSS
feed = 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/)