Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 682 Bytes

README.md

File metadata and controls

35 lines (28 loc) · 682 Bytes

data-scraping

Установить scrapy:

pip install Scrapy

Запустить скрипт:

scrapy crawl dishes

Результат(CSV-файл) сохраняется в дирректорию data под названием restaurants.csv

PostgreSQL integration

Установить psycopg2:

pip install psycopg2

Создать базу данных dishes в PostgreSQL:

postgres#: CREATE DATABASE dishes;

Запустить скрипт:

python3 dishes/data/load-to-pgsql.py
Note:

Конфигурация PostgreSQL:

  • host - localhost
  • user - postgres
  • password - postgres