/Openmart_Scraper

API endpoint that extracts relevant restaurant information from new restaurants in a given location.

Primary LanguagePython

Description

A FastAPI endpoint to retrieve the newest opened restaurants in a given location.

Running Locally

Create a .env file with APIFY_API_KEY and OPENAI_API_KEY.

pip install -r requirements.txt
python api.py
  • Note: Currently scraped results are limited to 50 to reduce concurrent load on GPT, but can be extended to up to 250 for more high-quality results

Demo *EC2 stopped

curl --location 'http://3.128.255.241/restaurants/' \
--header 'Content-Type: application/json' \
--data '{
    "location":"NY"
}'
curl --location 'http://3.128.255.241/jobs/{job_id}'
  • Insert job id returned from previous request