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. When new content is found, it alerts you through the Notificators installed from Plugins (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.
  • Extensible spiders — Add custom spiders in spiders.py; each yields 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.

Adding custom spiders

  1. Open listing_watch/spiders.py.
  2. Add a class that subclasses Spider.
  3. Implement crawling so the spider yields item dicts. The keys of each dict must match the placeholders used in the message_body_format strings in your notification profiles (e.g. query, url, price).

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.

BolhaSpider drives a real headless browser via Playwright (bolha.com's anti-bot protection requires actual JS execution), so its browser binary needs a one-time separate install:

playwright install chromium
uv sync --group web --group dev
uv pip install "listing-watch-notificators>=1,<2"   # Notificators come from a Plugin
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.0.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.0.0
File Size Uploaded Provenance Actions
listing_watch-4.0.0.tar.gz 237.2 kB Without provenance Details for listing_watch-4.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 254.2 kB

Release files / listing_watch-4.0.0.tar.gz

Download URL listing_watch-4.0.0.tar.gz
Size 237.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fcee886f890865d2d76cb4763f3c2bcb4fe61120d5f8b566bccd5b2599caf031
BLAKE2b-256 checksum
How to use checksums
86f59a050bc6e35fc474399e2a509de680dedb558b301331fd926e98b42ee775
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.0.0-py3-none-any.whl

Download URL listing_watch-4.0.0-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fce9ae8c432c22e8597d05bbda8ece8451d157a8d490b1229dae876e47ce66bd
BLAKE2b-256 checksum
How to use checksums
4c9f9cf489b65c50c0f4fdacd0f60230a6441380b16ab6b9e4bebd80a20441fa
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.0.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.0.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