Loading repository data…
Loading repository data…
Wikkiee / repository
LeadGenPy is a tool for lead generation that extracts Google Maps business details using Selenium, processes the data, stores it in a database, and dynamically generates personalized messages using the ChatGPT API, which are then sent to the lead's email
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
The Python script, main.py, controls the entire operation of LeadGenPy. It utilizes Selenium with a web driver to enter Google Maps, search for specific business types, and extract relevant information.
LeadGenPy performs the following tasks:
Data Extraction:
data.csv) and JSON (data.json) files simultaneously. {
"BusinessName": "Sample Business",
"Address": "123 Main Street, Cityville, State 12345",
"PhoneNumber": "123-456-7890",
"Website": "samplebusiness.com",
"Category": "General Business",
"Rating": "4.2",
"ReviewCount": "10",
"google_map_link": "https://www.google.com/maps/place/Sample+Business/data=...",
"email": "info@samplebusiness.com",
"status": "success"
}
User Interaction:
mode == 0).mode == 1).mode == 2).mode == 3).mode == 4).mode == 5).else).Authentication:
Select Extraction Mode (Mode 1):
Lead Generation Using Chat GPT API (Mode 4):
Sending Emails (Mode 4):
Additional Modes:
Production Mode (Mode 5):
Development Mode (Else):
Follow these steps to set up and run LeadGenPy locally:
Clone the Repository:
git clone https://github.com/your-username/LeadGenPy.git
Install Dependencies:
pip install -r requirements.txt
Dependencies:
selenium==4.5.0python-dotenv==0.21.0beautifulsoup4==4.12.2requests==2.28.1google-auth-oauthlib==1.1.0google-auth-httplib2==0.1.0google-auth==2.15.0google-api-python-client==2.70.0google-api-core==2.11.0googleapis-common-protos==1.57.0openai==0.28.0lxmlEnvironment Variables:
.env file with the following content:
OPENAI_API_KEY="Your-OpenAI-API-KEY"
SPREADSHEET_ID="Your-Google-sheet-ID"
EMAIL_ADDRESS="Your-Email-Address"
Download ChromeDriver:
assets\chromedriver.exe folderchrome://versionRun the Script:
cd src && python main.py
Authenticate with Google (if prompted):
Select the desired mode:
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to contribute! Check out the Contributing Guidelines for more information.