Skip to content

wohnyjalker/otoscrapper

Repository files navigation

otoscrapper

Simple scrapper created to practice async programming

Setup

Using docker-compose

  1. Copy the .env.example file as .env:

     cp .env.example .env
  2. Run docker-compose:

    docker-compose up

Without docker-compose

  1. Copy the .env.example file as .env:

     cp .env.example .env
  2. Create and activate virtual environment:

    python3 -m venv venv
    . venv/bin/activate
  3. Install the required dependencies:

    pip install -r requirements.txt
  4. Copy the .env.example file as .env:

    cp .env.example .env
  5. Start server:

    python server.py

Usage

To populate db:

curl -X POST localhost:8080/scrap -d '{"brand":"bmw", "model":"x3"}'

To list scrapped data:

curl -X GET -g 'localhost:8080/cars?brand=bmw&model=x3'

Additional query parameters:

price[lte], price[gte]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •