Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alifeee/website-differ


https://github.com/alifeee/website-differ

Last synced: 23 days ago
JSON representation

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 .