Skip to main content

Watch a URL for new comments and likes with cross-platform desktop notifications.

Project description

HN-Watch

HN-Watch watches a Hacker News post and alerts you when it gets new comments or more points.

It works on Linux, macOS, and Windows.

Install

From PyPI:

pip install hn-watch

From this repo:

pip install .

Use

Watch a post:

hn-watch --url "https://news.ycombinator.com/item?id=47779274"

Or run it and paste the URL when prompted:

hn-watch

Useful options:

hn-watch --url "https://news.ycombinator.com/item?id=47779274" --interval 30
hn-watch --url "https://news.ycombinator.com/item?id=47779274" --show-unchanged

What It Does

  • watches one Hacker News item URL
  • checks for new comments
  • checks for point increases
  • sends a desktop notification when counts go up
  • uses the official Hacker News API

Notes

  • only supports Hacker News item URLs
  • ignores #comment fragments and watches the main item
  • prints alerts in the terminal even if desktop notifications are unavailable

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

hn_watch-0.1.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

hn_watch-0.1.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file hn_watch-0.1.1.tar.gz.

File metadata

  • Download URL: hn_watch-0.1.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hn_watch-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e3f5802c659393963a4ab83d99cff9ad06ff1ea589b73a8fd91558a0d7efdc80
MD5 8852f97a4e53f3aa7262f30dc3ba7b88
BLAKE2b-256 6a755956caaa9dce1c7eed65b4746ac952f30ea54a0ca77f7195c09ae8aba11d

See more details on using hashes here.

Provenance

The following attestation bundles were made for hn_watch-0.1.1.tar.gz:

Publisher: publish.yml on hayden3456/hn-watch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hn_watch-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: hn_watch-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hn_watch-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ee05b45f7d5f5f8402a33dc95233f230d1eccb1b078ff42861a76ef6978f0cb
MD5 8b9bcb191663607490896f3d75c142c3
BLAKE2b-256 974b65af4911922402f6e8fa41e97f61a6eb61a7c6fe6b4ba4ae925f6e83cec9

See more details on using hashes here.

Provenance

The following attestation bundles were made for hn_watch-0.1.1-py3-none-any.whl:

Publisher: publish.yml on hayden3456/hn-watch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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