RSS generator for python
Go to file
Dmitriy Pleshevskiy 72b4f45cbc update: lxml >= 4.3.4
ci: add python 3.8 for tests
doc: add information about lxml requirements

Closes #8
2020-11-06 05:36:34 +03:00
.github/ISSUE_TEMPLATE chore: add bug report issue template 2019-07-25 10:29:19 +03:00
docs doc: add titles to api documentation 2019-07-25 19:53:17 +03:00
genrss feat: add image element 2019-08-21 21:34:46 +03:00
tests feat: add image element 2019-08-21 21:34:46 +03:00
.coveragerc feat: add 1.0.0 version 2019-07-23 23:28:04 +03:00
.gitignore feat: add 1.0.0 version 2019-07-23 23:28:04 +03:00
.travis.yml update: lxml >= 4.3.4 2020-11-06 05:36:34 +03:00
CHANGES.rst chore: update changes.rst 2019-07-30 23:37:56 +03:00
CODE_OF_CONDUCT.md fead: add code_of_conduct.md 2019-07-24 23:55:01 +03:00
LICENSE Initial commit 2019-07-23 20:48:40 +03:00
Pipfile feat: add docs 2019-07-24 17:25:56 +03:00
Pipfile.lock chore(deps): bump cryptography from 2.7 to 3.2 2020-10-27 22:06:43 +00:00
README.md update: lxml >= 4.3.4 2020-11-06 05:36:34 +03:00
requirements-test.txt feat: add 1.0.0 version 2019-07-23 23:28:04 +03:00
setup.py update: lxml >= 4.3.4 2020-11-06 05:36:34 +03:00

README.md

genrss

PyPI version Build Status Coverage Status Documentation Status

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:

sudo apt-get install libxml2-dev libxslt-dev

Install and update using pip:

pip install -U genrss

A Simple Example

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()

Documentation: https://genrss.readthedocs.io/en/latest/