Skip to main content

CLI tool to monitor web page updates

Project description

Page Update Monitor


Quick Start

pip install page-update-monitor
pum add
pum check

A simple CLI tool to monitor web page updates. Register any web page and check whether it has changed since the last time you checked. You can monitor the entire page or specific elements using CSS selectors.


Features

  • Monitor full web pages for changes
  • Monitor specific elements using CSS selectors
  • Simple and intuitive CLI
  • Lightweight (no browser required)
  • Local JSON storage (no database needed)

Installation

Install via pip:

pip install page-update-monitor

Usage

pum [COMMAND]

Check version:

pum --version
pum -v

Commands

See help

pum --help

Check for updates

pum check

Checks all registered websites and reports changes.


Add a website

pum add

You will be prompted to enter:

  • Site name (any name you like, used locally to identify the site)

  • URL

  • Mode:

    • full (default): monitor the entire page
    • selector: monitor a specific HTML element

If you choose selector mode, enter a CSS selector.

Examples:

#main
.content

The tool will validate the selector and show a preview:

[OK] #main -> <content preview>...

List websites

pum list

With details:

pum list -d

Remove a website

pum remove [name]

Alias:

pum rm [name]

Example:

pum rm example-site

Show version

pum version

Or:

pum --version
pum -v

How It Works

  • Fetches HTML using requests
  • Parses content with BeautifulSoup
  • Stores previous results locally
  • Compares current content with the last snapshot

If a difference is detected, it reports an update.


Data Storage

Configuration files are stored in the user config directory:

  • Linux: ~/.config/page-update-monitor/
  • macOS: ~/Library/Application Support/page-update-monitor/
  • Windows: %APPDATA%/page-update-monitor/

Example Workflow

pum add
pum list
pum check

Requirements

  • Python 3.10+

Dependencies

  • typer
  • requests
  • beautifulsoup4
  • rich

Development

Clone the repository:

git clone https://github.com/yourname/page-update-monitor.git
cd page-update-monitor
pip install -e .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

page_update_monitor-1.0.2.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

page_update_monitor-1.0.2-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file page_update_monitor-1.0.2.tar.gz.

File metadata

  • Download URL: page_update_monitor-1.0.2.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for page_update_monitor-1.0.2.tar.gz
Algorithm Hash digest
SHA256 e1ef4f82877ab6963e9269f9f96e204fe2f735656e5e4c9724d365198aaa72c5
MD5 91f581a8fe2a9e51716a199fec55fccd
BLAKE2b-256 7a2b348ab8e72b9066fbbcec519092cd899b0d1355da19d9b3026f648480861b

See more details on using hashes here.

File details

Details for the file page_update_monitor-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for page_update_monitor-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d2fd3e429f7b64cd5271f83bb2add41f16232c1889f493da6a704bf7988bdbb9
MD5 a0ce4c571c39e70d5f2fc6f4579d18fd
BLAKE2b-256 90fe86511a6c333bd2157e56903399b76a0f260d59946065b8929671fc78aaa6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page