RSS generator for python
Go to file
Dmitriy Pleshevskiy ddc2724684
Merge pull request #17 from icetemple/dependabot/pip/urllib3-1.26.5
chore(deps): bump urllib3 from 1.26.4 to 1.26.5
2022-09-27 12:26:21 +00:00
.github/ISSUE_TEMPLATE chore: move example code to steps to reproduce block 2020-11-08 05:02:04 +03:00
docs doc: update information about dependencies 2020-11-08 04:51:52 +03:00
genrss fix: undefined variable 2020-11-08 04:43:22 +03:00
tests fix: undefined variable 2020-11-08 04:43:22 +03:00
.coveragerc feat: add 1.0.0 version 2019-07-23 23:28:04 +03:00
.gitignore fix: undefined variable 2020-11-08 04:43:22 +03:00
.travis.yml update: lxml >= 4.3.4 2020-11-06 05:36:34 +03:00
CHANGES.rst chore: bump version 2020-11-08 04:55:44 +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 urllib3 from 1.26.4 to 1.26.5 2021-06-02 00:01:35 +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 chore: bump version 2020-11-08 04:55:44 +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/