Skip to main content

Listing Watch

An extensible Python framework that watches listings/classifieds sites for new items and sends notifications through pluggable Notificators.

Tests Python 3.12+ License: MIT PyPI version

Overview

Listing Watch runs Spiders that crawl configured websites (e.g. classifieds, car listings) for new items. Spiders and Notificators both come from Plugins: the Core ships neither. When new content is found, it alerts you through the installed Notificators (e.g. Email, Pushover or ntfy from listing-watch-notificators). Everything — which sites to watch, how often, and where to send notifications — is configured through the Web UI, a Django app backed by a database (no config files, no legacy JSON cache).

Features

  • Scheduling — Run each query on a simple interval or a cron expression, configured per query in the web UI.
  • Pluggable notificators — Install Notificator Plugins (the Docker image ships listing-watch-notificators: Email, Pushover and ntfy); mix and match per query with configurable message formats.
  • Pluggable spiders — Install Spider Plugins, or write your own (see Writing a Spider Plugin); each Spider returns Items whose keys match your message_body_format placeholders.
  • Web UI — Manage queries and schedules, trigger manual runs, and browse found items and run history in a browser.
  • Dockerized — Suitable for containerized deployment (images published on Docker Hub).

Architecture

flowchart LR
    subgraph WebUI
        DB[(Database)]
    end
    subgraph Runtime
        Scheduler[Scheduler]
        Spiders[Spiders]
        Notify[Notificators]
    end
    DB --> Scheduler
    Scheduler --> Spiders
    Spiders --> DB
    DB -->|new items| Notify

Flow: queries, schedules, and notification profiles are configured in the web UI and stored in the database. The scheduler triggers each query on its configured schedule. Spiders fetch pages and parse items, which are diffed against previously found items already stored in the database. New items trigger notifications via that query's configured channels.

Notification configuration

The Core contains no Notificators of its own: they come from Plugins, registered through the listing_watch.notificators entry-point group. The public Docker image includes listing-watch-notificators, which provides Email (Gmail SMTP), Pushover and ntfy -- see its README for how to set each one up. For a local install, add it next to the Core:

uv pip install "listing-watch-notificators>=1,<2"

Each Notificator is set up once as a reusable notification profile in the web UI (see Web UI), then attached to any query.

Writing a Spider Plugin

The Core contains no Spiders of its own: they come from Plugins, registered through the listing_watch.spiders entry-point group. A Plugin is an ordinary Python package that depends on listing-watch>=4,<5:

  1. Subclass listing_watch.spiders.Spider, set its name, and implement run() so it returns Item dicts. Every Item needs a title and a url; price is optional, and extra keys are allowed. List the keys in item_fields so they can be used as placeholders in message_body_format.

  2. Declare any settings the Spider needs from the user as config_fields; the Query form renders them.

  3. Register the class in your pyproject.toml:

    [project.entry-points."listing_watch.spiders"]
    cars = "my_plugin.spiders:CarsSpider"
    
  4. Check it against the Plugin interface from your tests with listing_watch.contract.check_plugin("my-plugin").

The public Docker image has no Spiders. To deploy, build an image FROM it that installs your Spider Plugin, plus anything its Spiders need (e.g. a browser).

Web UI

A Django-based web UI lives in webui/. It lets you add and configure queries (URL + spider + cron schedule + notifications) from a browser, trigger manual runs, and browse found items and run history (via Django admin). It uses a SQLite database instead of the legacy JSON cache files.

Notification credentials (e.g. an ntfy topic or a Pushover app token) are set up once as a reusable notification profile under "Notification profiles" in the web UI, then attached to any query -- no need to re-enter them for every new query. Mark a profile as default for its type to have it auto-attached (pre-selected, still removable) whenever you add a query. Profiles are private to the account that created them.

uv sync --group web --group dev
uv pip install "listing-watch-notificators>=1,<2"   # Notificators come from a Plugin
uv pip install <your Spider Plugin>                  # and so do Spiders
cd webui
python manage.py migrate
python manage.py createsuperuser

python manage.py runserver        # web UI, in one terminal
python manage.py runscheduler     # cron-driven scheduler, in another terminal

Visit http://localhost:8000/ for the query list, and http://localhost:8000/admin/ for found items and run history.

Development setup

Clone the repository:

git clone https://github.com/jprevc/listing-watch.git
cd listing-watch

Install in development mode (with dev dependencies) and run tests:

uv sync --extra dev
uv run pytest

Metadata

Release files for listing-watch 4.1.0

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

Source distribution (sdist)

Source distribution for listing-watch 4.1.0
File Size Uploaded Provenance Actions
listing_watch-4.1.0.tar.gz 173.5 kB Without provenance Details for listing_watch-4.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for listing-watch 4.1.0
File Interpreter ABI Platform Actions
listing_watch-4.1.0-py3-none-any.whl Python 3 none any Details for listing_watch-4.1.0-py3-none-any.whl

Total release size: 186.9 kB

Release files / listing_watch-4.1.0.tar.gz

Download URL listing_watch-4.1.0.tar.gz
Size 173.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5fde04b637d33065e0466ded4be402f6341def9a23e16bc8a6dbfd0d4a3b5602
BLAKE2b-256 checksum
How to use checksums
0fb7170152cd4387a9795dbb67e5d1ebaeb3a5d228c8ac4c288e18abc9f57afa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / listing_watch-4.1.0-py3-none-any.whl

Download URL listing_watch-4.1.0-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
25bf7a01f65efc317653e80ad6e4578cbbded254c6f7869b445d450ff91fd65a
BLAKE2b-256 checksum
How to use checksums
6c78c403a7e42203eebdf3e7cd46c0a2960cf9ee12ce63d9224677917cf0384a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for listing-watch 4.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

4.1.0 This release

2 release files No provenance

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