- Create a virtual environment
python -m venv .venv
and activate itsource .venv/bin/activate
- Create
.env
file and add secret keys
BROWSERLESS_API_KEY =
SERP_API_KEY =
OPENAI_API_KEY =
- Install dependencies.
pip install -r requirements.txt
- Run the server.
python main.py
- Go to
localhost:8000/docs
for openAPI documentation.
query
: (string *required
) a search query to be madestream
: (bool optional
)(default: false
) should the server stream the scraped result or not
List/Stream of dictionary
description
: (string
) Extracted description of the website about the producturl
: (string
) Source url of the websitereduced
: (bool
) Whether the description is extracted using map-reduced or not.