VendorScraperAPI is a powerful web search API that helps users find top-rated vendors for various home services. Built with modern technologies including FastAPI, CrewAI, and Browserbase for efficient task management and web scraping.
- Find top-rated vendors for home services
- Integrated web scraping with Browserbase
- AI-powered search capabilities
- FastAPI backend for high performance
- Easy-to-use RESTful API endpoints
- Clone the repository:
git clone https://github.com/yourusername/VendorScraperAPI.git- Create and activate virtual environment:
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Set environment variables:
export BROWSERBASE_API_KEY=your_browserbase_api_key
export BROWSERBASE_PROJECT_ID=your_browserbase_project_id
export OPENAI_API_KEY=your_openai_api_keyStart the FastAPI server:
uvicorn main:app --reloadAccess the API documentation at: http://127.0.0.1:8000/docs
├── browserbase.py # Browserbase session management and scraping
├── googletool.py # Google Maps URL generation
├── main.py # FastAPI application and endpoints
├── requirements.txt # Project dependencies
└── README.md # Project documentation
Search for vendors based on service type and filters
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| service_type | str | Yes | Type of service (e.g., Plumbing) |
| filters | str | No | Additional search filters |
Example Request:
curl -X 'GET' \
'http://127.0.0.1:8000/search?service_type=Plumbing&filters=24-hour' \
-H 'accept: application/json'Example Response:
{
"service_type": "Plumbing",
"filters": "24-hour",
"results": [
{
"name": "QuickFix Plumbers",
"rating": 4.8,
"services": ["Emergency", "Drain Cleaning"],
"contact": "555-1234"
}
]
}Contributions are welcome! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.