Skip to main content

Import RSS and Atom feeds and save in the database.

Project description


Import RSS and Atom feeds and save in the Django database.


* Django >= 1.4
* Feedparser
* `django.core.context_processors.request` context processor (for the template
tag usage)


Install from pypi::

pip install django-feed-imports

Install from source with pip::

pip install -e https://github/modlinltd/django-feed-imports/archive/

Or install from source:

git clone
cd django_feed_imports
python install

Add it the application to your ``INSTALLED_APPS`` setting::


Run `syncdb` and `migrate`::

python syncdb
python migrate


#. Configure the feeds sources in the Admin.
#. Run the management command::

python refresh_feeds

*The management command should run as a cron job.*
#. Using the template tag::

{% load feed_items %}
{% get_feed_items "news" 5 as items %}
{# Get the last 5 items from the feed "news" in the current language #}
{% for item in items %} {# do stuff ... #} {% endfor %}

The `get_feed_items` returns the last `n` items from the provided feed in
the language as set in the request, with a fallback to the default language.

If settings.DEFAULT_LANGUAGE is not defined, English will be assumed.
<<<<<<< HEAD

#. To use `feed_item.get_absolute_url()` you must the define a url with the
name `feed_item` in you ``. For Example::




* Clean up README and prepare for sharing


* add Python 3 support
>>>>>>> parent of 68cd327... updated readme

Project details

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page