Yet another Python watcher for website updates.
Project description
wristwatch
Yet another Python watcher for website updates.
Supports:
- Selecting elements to watch with CSS selectors.
- Importing Cookies from any browser (to scrape webpages that require authentication).
- Other stuff...
You can safely quit watching at any time by pressing Ctrl+C
.
Requirements
- Python 3 with pip.
Installation
pip install -U wristwatch
Arguments
Command | Shorthand | Example | Description |
---|---|---|---|
https://example.com/ |
The URL of the webpage to scrape. | ||
--browser | -b | -b chrome |
Name of the browser to get cookies from (default: any). |
--frequency | -f | -f 60 |
Frequency of fetches in seconds (default: 60). |
--selector | -s | -s #minutes -s #hours |
CSS selector of element(s) to scrape. Can be used multiple times. |
-e | -e example@gmail.com |
Email address to self-send the changes to. | |
--password | -p | -p aaaa bbbb cccc dddd |
Email "app" password. Here's a guide on how to generate one: https://support.google.com/accounts/answer/185833 |
--quiet | -q | -q |
Decrease output verbosity. |
--loop | -l | -l |
Keep watching for changes even after the first one. |
--output | -o | -o output.txt |
Save the last fetch to a file. |
--input | -i | -i input.txt |
Load the first fetch from a file. |
--version | -v | -v |
Show the program's version. |
Examples
wristwatch "https://relaxingclock.com" -s "#minutes" -f 5
Screenshots
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
wristwatch-1.0.1.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for wristwatch-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 342ccbf5cd7dec7d87ae06ae7e22b82a8dabce1e4bae5e22460182366d661852 |
|
MD5 | 94bcac7fe7bdac98db5106850cc69903 |
|
BLAKE2b-256 | 13573b5f505b8571c21769d43405b96dc1aa1c5486a251be8c448b6a1594efae |