Skip to main content

Django backend only working with Feedparser

PyPI - Version PyPI - License PyPI - Status

There are other feedparser apps for django tasks, but they have varied support levels. Hopefully this will be simple enough for maintainace to be simple.

The goal of this project is to have a simple Feed object that can be registered and a simple task to schedule scrapes.

Those that want to integrate should use Django post_save signal.

@reciever(post_save, Entry)
def entry_post_save(instance: Entry, **kwargs):
    # Feed was scraped and entry was either newly created, or updated

There is an optional helper that combines checks with automatically calling a task.

from django.tasks import task
from django_feedparser_low.decorators import feed_filter
from django_feedparser_low.models import Entry


@feed_filter(lambda entry: entry.feed.url == "https://example.com/index.xml")
@task
def process_entry(pk: str):
    # Only trigger this task, if the scraped Entry matches our filter
    entry: Entry = Entry.objects.get(pk=pk)

Metadata

Release files for django-feedparser-low 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-feedparser-low 0.1.1
File Size Uploaded
django_feedparser_low-0.1.1.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-feedparser-low 0.1.1
File Interpreter ABI Platform
django_feedparser_low-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.9 kB

Release files / django_feedparser_low-0.1.1.tar.gz

Download URL django_feedparser_low-0.1.1.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
106b04490ae6f0df37a64f1b61055f7fe602ab12e3750e38dd0ee586b0ff7b51
BLAKE2b-256 checksum
How to use checksums
17737635880e9fe797cb9a32a42751d7feec353cd3912a783252bc211388bb25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / django_feedparser_low-0.1.1-py3-none-any.whl

Download URL django_feedparser_low-0.1.1-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5517fa11832a667bb3a615d64a5176d0c68bed0df8cee1678e790fa112c81c20
BLAKE2b-256 checksum
How to use checksums
bd7b3dd664ba2a7af5c2d81828d816e1463c75ab77d0a0f20b26baf064722680
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page