Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 476 Bytes

readme.md

File metadata and controls

31 lines (19 loc) · 476 Bytes

Usage

install requirements:

pip install -r requirements.txt

start redis server on standard port: 6379

create .env file with enviroment variables:

MYSQL_HOST=
MYSQL_PORT=
MYSQL_USER=
MYSQL_PASSWORD=
MYSQL_DATABASE=

Scripts:

  1. Cache database to redis:

python -m scripts.collect_data

  1. Parse single title: (for testing)

python -m scripts.run_single -t <TITLE>

  1. Parse and update database

python -m scripts.update_data_tables