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

https://github.com/romanzipp/product-notifier

Product availability notifier for Nike & Zalando
https://github.com/romanzipp/product-notifier

Last synced: 17 days ago
JSON representation

Product availability notifier for Nike & Zalando

Awesome Lists containing this project

README

        

# Product Notifier

**Supported Shops:**
- Nike.com
- Zalando

## Build

```
go build -o app .
./app
```

## Docker

#### Build

```shell
docker build -t product-notifier:latest .
```

#### Run

```shell
docker run \
-v "$(pwd)/.env:/.env" \
-v "$(pwd)/config.json:/config.json" \
product-notifier:latest
```

## Configuration

- Copy [.env.example](.env.example) to **.env**
- Copy [config.example.json](config.example.json) to **config.json**
- Edit values

### `.env`

```dotenv
PUSHOVER_APP_TOKEN=
PUSHOVER_USER_TOKEN=
```

### `config.json`

```json
{
"loop_interval": 60,
"products": [
{
"title": "Nike Air Force 1 Luxe",
"img": "https://static.nike.com/a/images/t_PDP_864_v1/f_auto,b_rgb:f5f5f5/076656c4-0ce3-4602-8120-190f8443c67b/air-force-1-luxe-herrenschuh-86CTL1.png",
"sizes": [
"44",
"44.5"
],
"providers": [
{
"id": "nike",
"url": "https://www.nike.com/de/t/air-force-1-luxe-herrenschuh-86CTL1/DD9605-100"
}
]
},
{
"title": "Nike Air Force 1 High Utility 2.0",
"img": "https://static.nike.com/a/images/t_PDP_864_v1/f_auto,b_rgb:f5f5f5/f3733d25-3f73-4a96-aebd-625098b25198/air-force-1-high-utility-2-damenschuh-lkNqX7.png",
"sizes": [
"44"
],
"providers": [
{
"id": "zalando",
"url": "https://www.zalando.de/nike-sportswear-air-force-1-sneaker-high-summit-whitesailblack-ni111a0z6-a11.html?size=36&allophones=0"
},
{
"id": "nike",
"url": "https://www.nike.com/de/t/air-force-1-high-utility-2-damenschuh-lkNqX7"
}
]
}
]
}
```