A comprehensive sales automation toolkit that combines website analysis, SEMRush reporting, and automated email outreach.
Automates the process of generating and sending SEMRush reports via email.
csv_test.py
: Main script for processing contacts and sending reportssemrush_capture.py
: Captures SEMRush reports using Seleniummailgun_sender.py
: Handles email delivery through Mailgunemail_preparer.py
: Prepares email templates and contentapollo_sender.py
: (Legacy) Apollo API integrationgmail_sender.py
: (Alternative) Gmail integration
Tools for analyzing and classifying websites:
classify_website.py
: Main classification script using GPT-4screenshot_capture.py
: Captures website screenshotsapollo.py
: Apollo API integration for contact data
list_models.py
: OpenAI model managementtesting.py
: Test scriptsupload.py
: File upload utilities
- Clone the repository:
git clone https://github.com/calvinbeighle/SearchAgent.git
cd SearchAgent
- Create and activate virtual environment:
python3 -m venv venv
source venv/bin/activate
- Install dependencies:
pip3 install -r requirements.txt
- Configure environment variables:
Create a
.env
file with:
# SEMRush credentials
SEMRUSH_EMAIL=your_email
SEMRUSH_PASSWORD=your_password
# Email sender information
SENDER_NAME=Your Name
SENDER_TITLE=Your Title
SENDER_COMPANY=Your Company
# Mailgun credentials (for email sending)
MAILGUN_API_KEY=your_mailgun_key
MAILGUN_DOMAIN=your_domain
# Optional API keys
APOLLO_API_KEY=your_apollo_key
OPENAI_API_KEY=your_openai_key
cd semrush_mailer
python3 csv_test.py test_contact.csv 1
This will:
- Read contacts from CSV
- Capture SEMRush reports
- Generate email previews
- Send emails through Mailgun
python3 classify_website.py
This will:
- Analyze websites using GPT-4
- Generate screenshots
- Create classification reports
SearchAgent/
├── semrush_mailer/ # SEMRush report automation
│ ├── templates/ # Email templates
│ ├── email_previews/ # Generated email previews
│ └── semrush_reports/ # Captured SEMRush reports
├── csvs/ # CSV data files
├── oldreports/ # Historical reports
├── oldscreenshots/ # Historical screenshots
└── test/ # Test files
- Automated SEMRush Reports: Captures and processes SEMRush data
- Email Integration: Supports multiple email providers (Mailgun, Gmail)
- Contact Management: Integration with Apollo for contact data
- Website Analysis: AI-powered website classification
- Customizable Templates: Email template system
- Batch Processing: Handle multiple contacts efficiently
- Python 3.7+
- Selenium WebDriver
- Chrome/Chromium browser
- Required Python packages in
requirements.txt
- Generated reports are saved in
semrush_reports/
- Email previews are stored in
email_previews/
- Supports batch processing of contacts
- Includes error handling and logging
Feel free to submit issues and enhancement requests.
Calvin Beighle - calvin@angusdesign.com