Django backend only working with Feedparser
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)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_feedparser_low-0.1.1.tar.gz.
File metadata
- Download URL: django_feedparser_low-0.1.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
106b04490ae6f0df37a64f1b61055f7fe602ab12e3750e38dd0ee586b0ff7b51
|
|
| MD5 |
ec6ef178aa76ae9a4f6c388039a8c6a5
|
|
| BLAKE2b-256 |
17737635880e9fe797cb9a32a42751d7feec353cd3912a783252bc211388bb25
|
File details
Details for the file django_feedparser_low-0.1.1-py3-none-any.whl.
File metadata
- Download URL: django_feedparser_low-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5517fa11832a667bb3a615d64a5176d0c68bed0df8cee1678e790fa112c81c20
|
|
| MD5 |
651f7bb006ff2fdbd5fe7ef77c8e7b7d
|
|
| BLAKE2b-256 |
bd7b3dd664ba2a7af5c2d81828d816e1463c75ab77d0a0f20b26baf064722680
|