for only de assignment
-
Clone this project by http or ssh
-
Create Virtual Environment and activate (Used in this project)
virtualenv env
source env/bin/activate
- Install libary that used in this project
pip install -r requirements.txt
- Run docker build (make sure that docker desktop is running)
docker-compose build
- Run everything (Scrape all books and add to Postgres)
docker-compose up
- Run get_random_image.py in order to retrieve images and info from PostgresSQL (DEFAULT = 10 images)
python get_random_image.py
- Images and info of thoes data will be saved in the folder