Yet another Python watcher for website updates.
Project description
wristwatch
Yet another Python watcher for website updates.
Features
- Selecting elements to watch with CSS selectors.
- Automatic importing of cookies from many browsers.
- Emailing the changes to yourself.
- Other features...
You can safely quit watching at any time by pressing Ctrl+C
.
Installation
After having installed Python 3 with pip, you can install wristwatch using the following command:
pip install 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 (by default, any browser possible). See --help for supported browsers. |
--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. |
--email |
-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. |
--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. |
--alert |
-a |
-a |
Play a sound when changes are detected. |
--version |
-v |
-v |
Show the program's version. |
--help |
-h |
-h |
Show the help message on how to use the program. |
Examples
wristwatch "https://relaxingclock.com" -s "#minutes" -f 5 -a -l
Screenshots
Changelog
This changelog only includes changes that are worth mentioning.
- 1.0.0:
- Initial release.- 1.0.1
-Specified dependencies version requirements - 1.0.2
-Fixed--loop
argument not working
- 1.0.1
- 1.1.0:
- Added--alert
argument to play a sound when changes are detected. - 1.2.0:
- Added--debug
argument to show debug info & error messages.
- Changed "rookiepy" dependency for "browser-cookie3"
- Better error handling.
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.2.0.tar.gz
(6.5 kB
view hashes)
Built Distribution
Close
Hashes for wristwatch-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5774a5b1c2053dfb046fa4e18811e489fdaead9984a9a65649e88fe084517693 |
|
MD5 | af050f757ec10bbb83e1ccf4d0027ebe |
|
BLAKE2b-256 | 5506ffdc2bad13fbc154b11573b733e2380c454ca2395ab245c4d41ce7866283 |