A FastAPI application that scrapes product data from Connecta Venda catalogs and returns it as TEXT.
- Clone the repository:
git clone https://github.com/yourusername/connecta-web-scraper.git
cd connecta-web-scraper- Create a virtual environment:
python -m venv venv- Activate the virtual environment:
- On Windows:
venv\Scripts\activate- On macOS/Linux:
source venv/bin/activate- Install dependencies:
pip install -r requirements.txt- Start the FastAPI server:
python app.py-
The API will be available at
http://localhost:8000 -
Access the API documentation at
http://localhost:8000/docs
- Build and start the container:
docker-compose up-
The API will be available at
http://localhost:8000 -
Access the API documentation at
http://localhost:8000/docs
- GET
/scrape - Parameters:
url: The Connecta catalog URL to scrape
- Example:
http://localhost:8000/scrape?url=https://app.conectavenda.com.br/c25adbbf63a83befa6c04e686c3c090f- Python 3.8+
- Docker (optional)
- See requirements.txt for complete dependency list
MIT License - See LICENSE for details