Metadata-Version: 2.1
Name: hexaa_business_scraper
Version: 0.2
Summary: A Flask-based business scraper leveraging Playwright and Google Maps
Home-page: https://github.com/your_username/hexaa_business_scraper
Author: Dilawaiz Khan
Author-email: dilawaizkhan08@gmail.com
License: MIT
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Framework :: Flask
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: flask
Requires-Dist: playwright
Requires-Dist: pandas
Requires-Dist: flask-cors

# Hexaa Business Scraper

Hexaa Business Scraper is a Python library designed for scraping business information from Google Maps. With minimal setup, users can extract details like business names, addresses, websites, phone numbers, reviews, and more by simply importing the library and passing relevant parameters.

---

## Installation

Install the package using pip:

```bash
pip install hexaa-business-scraper
```

# Usage
After installation, you can import the library and use its main function to scrape business data.

# Example
```
from hexaa_business_scraper import scrape_businesses
```

# Parameters:
search_query = "restaurants in New York"  # Search term for businesses
total_results = 10  # Number of results to scrape

# Scrape and save results to a CSV file
scrape_businesses(search_query, total_results)
This example scrapes 10 businesses based on the search query and saves the results in a CSV file named result.csv.

# Parameters
The scrape_businesses function accepts the following parameters:

search_query (str): The search term to look for (e.g., "hotels in Paris").
total_results (int): The number of businesses to scrape. Default is 10.

# Output
The scraper saves the scraped data in a CSV file named result.csv with the following fields:

Business Name
Address
Website
Phone Number
Review Count
Average Rating
Business Type
Opening Hours
Notes
Make sure to have Playwright installed and set up properly.

For Playwright setup, run the following command after installing the library:


playwright install
# Happy Scraping! 🚀
