added example of sites.json to readme

This commit is contained in:
Andrei Stoica 2023-04-19 17:44:57 -04:00
parent a568fb244e
commit b9e754c984
1 changed files with 12 additions and 0 deletions

View File

@ -23,6 +23,18 @@ Start database
docker-compose up
```
Example `sites.json`
```json
[
{
"name": "Example Site Name",
"ingredient_class": "example-ingredients-item-name",
"name_class" : "example-heading-content",
"base_url" : "https://www.example.com/recipe/"
}
]
```
Initialize database and recipe sites
```sh
python src/db.py