genrss/README.md

46 lines
1.6 KiB
Markdown
Raw Normal View History

2019-07-23 20:48:40 +03:00
# genrss
2019-07-23 22:59:53 +03:00
2019-07-24 23:31:14 +03:00
[![PyPI version](https://badge.fury.io/py/genrss.svg)](https://badge.fury.io/py/genrss)
2019-07-23 22:59:53 +03:00
[![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)
2019-07-24 23:31:14 +03:00
[![Documentation Status](https://readthedocs.org/projects/genrss/badge/?version=latest)](https://genrss.readthedocs.io/en/latest/?badge=latest)
2019-07-23 22:59:53 +03:00
2019-07-23 20:48:40 +03:00
RSS generator for python
## Installing
Install and update using pip:
2019-07-25 18:33:05 +03:00
``pip install -U genrss``
## A Simple Example
```python
from datetime import datetime
from genrss import GenRSS
feed = GenRSS(title='SmartFridge',
2019-07-24 23:31:14 +03:00
site_url='https://smartfridge.me',
feed_url='https://smartfridge.me/feed/rss.xml')
feed.item(title='black buns for burgers',
2019-07-24 23:31:14 +03:00
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/)