MyPyppertter

Install project

pip install -r requirements.txt
./init.local.sh build

Run Scraper

Open Browser

If you are using WSL see the next post and this if you hace any problem with the permissions with Xming

Export required vars

# For UNIX
export DATABASE_URL=''
export BROWSER_IP='127.0.0.1'

# For Windows(CMD) - Create vars and reset CMD
setx DATABASE_URL "anything"
setx BROWSER_IP "127.0.0.1"

Launch Browser

# Use python 3.8(equal to dockerfile)
python console.py  pyppeteer:open_browser --gui

Select the command that you want run

exec ./init.local.sh run --rm scraper and afert ./console.py.

Login on Database

psql -U $POSTGRES_USER -h $POSTGRES_HOST -d $POSTGRES_DB -W

Migrations

  • Create file
  • run aerich upgrade