Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alifeee/website-differ
https://github.com/alifeee/website-differ
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/alifeee/website-differ
- Owner: alifeee
- Created: 2023-04-13T15:58:53.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-09T21:42:04.000Z (2 months ago)
- Last Synced: 2024-09-10T02:27:35.824Z (2 months ago)
- Language: Python
- Size: 202 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Web differ
This project is a frontend for keeping track of static websites to see if they change.
Also see/consider using
![Screenshot of frontend](images/frontend_screenshot.png)
## Usage
### Install
```bash
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
playwright install
mkdir snapshots
echo "id,url,css_selector\n" > sites.csv
py ./server.py
```#### Use service
```bash
cp website-differ.service /etc/systemd/system/website-differ.service
sudo systemctl enable website-differ.service
sudo systemctl start website-differ.service
```Set up cron
```bash
crontab -e
```Backup tracked websites, then run the differ to check for new content.
```bash
# Run every day
0 12 * * * /root/python/website-differ/backup.sh >> /root/python/website-differ/cron.log 2>&1
0 12 * * * /root/python/website-differ/rundiffer.sh >> /root/python/website-differ/cron.log 2>&1
```## Development
### Set up virtual environment
```bash
py -m venv env
```### Save dependencies
```bash
pip freeze > requirements.txt
```## Notifications
Notifications are sent via Pushbullet. To set up Pushbullet via python, you need to set up an access token, found in the [user settings](https://www.pushbullet.com/#settings/account).
These are stored in a `.env` file.```.env
PUSHBULLET_ACCESS_TOKEN=...
```See more information on .