35 lines
578 B
Markdown
35 lines
578 B
Markdown
# Recipe Graph
|
|
|
|
## Setup
|
|
Prerequisits
|
|
- Docker compose
|
|
- Python
|
|
|
|
Install python requirements
|
|
```sh
|
|
python -m pip installl -r requirements.txt
|
|
```
|
|
|
|
Start database
|
|
```sh
|
|
docker-compose up
|
|
```
|
|
|
|
Initialize database and recipe sites
|
|
```sh
|
|
python src/db.py
|
|
python src/inser_sites.py data/sites.json
|
|
```
|
|
|
|
## Usage
|
|
import new recipes
|
|
```sh
|
|
python src/scrape.py <SiteName> <RecipeIdentifier>
|
|
```
|
|
|
|
|
|
## TODO
|
|
> ☐ automate scraping\
|
|
> ☐ extend importing funcionality to more websites\
|
|
> ☐ extracting quantity and name (via regex)\
|
|
> ☐ matching ingredients to recipe ingredients |