RSS generator for python
Find a file
dependabot[bot] 32eef60875
chore(deps): bump lxml from 4.3.4 to 4.6.3
Bumps [lxml](https://github.com/lxml/lxml) from 4.3.4 to 4.6.3.
- [Release notes](https://github.com/lxml/lxml/releases)
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt)
- [Commits](https://github.com/lxml/lxml/compare/lxml-4.3.4...lxml-4.6.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-31 19:24:59 +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 lxml from 4.3.4 to 4.6.3 2021-03-31 19:24:59 +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

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/