https://github.com/jsmith/watcher
Periodically checks websites for changes!
https://github.com/jsmith/watcher
Last synced: 18 days ago
JSON representation
Periodically checks websites for changes!
- Host: GitHub
- URL: https://github.com/jsmith/watcher
- Owner: jsmith
- Created: 2018-05-16T22:10:41.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-18T15:58:23.000Z (over 6 years ago)
- Last Synced: 2026-01-31T19:34:40.034Z (5 months ago)
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Watcher
Periodically check websites for changes & send notification emails!
## Why?
Most sites (except some blogs) don't offer any way for you to receive a notification when their website has been updated. There were a few sites that I needed to stay updated with so I made this simple script. To determine if a site has changed, this script counts a number of keywords and compare the count to the previous count.
## Usage
Create a file in your home directory named `.watcher.yaml` (ex. `~/.watcher.yaml`). Alternatively, place it wherever you want and pass the path in as the first argument to the `watcher.py` script. The file contents should look something like this:
```yaml
email: @gmail.com # the email to send the email from
password:
destination: @gmail.com # the email to send the email to
# Now the create whatever you want. These are just some examples. Make sure to follow the same format
sites:
samaltman:
url: http://blog.samaltman.com
keys: [posted]
facebook:
url: https://www.facebook.com/careers/university/internships/engineering
keys: [fall, engineering, software]
```
Make sure to have [pipenv](https://github.com/pypa/pipenv/) installed and that you've allowed [less secure apps to access your email](https://www.google.com/settings/security/lesssecureapps). After you've done that, run these commands:
```
sudo apt-get install chromium-chromedriver
pipenv install
pipenv run python watcher.py
```