Overview
TheOutreach class handles automated business outreach through Google Maps scraping and email campaigns. It scrapes business information and sends personalized outreach emails.
Constructor
None
Example:
Methods
is_go_installed
bool - True if Go is installed, False otherwise
unzip_file
The link to the zip file
None
build_scraper
None
run_scraper_with_args_for_30_seconds
The arguments to run the scraper with
The time to run the scraper for (default: 300 seconds)
None
get_items_from_file
The name of the file to read from
list - The items from the file
set_email_for_website
The row index in the CSV file where the email should be appended
The URL of the website to extract the email address from
The path to the CSV file to update with the extracted email
start
- Checks if Go is installed
- Downloads and unzips the scraper
- Builds the scraper
- Runs the scraper to collect business information
- Extracts email addresses from business websites
- Sends personalized outreach emails
None
Example:
Complete Workflow
TheOutreach class follows this workflow:
- Initialization: Verifies Go installation and loads configuration
- Scraper Setup: Downloads and builds the Google Maps scraper
- Business Discovery: Scrapes Google Maps for businesses in the specified niche
- Email Extraction: Visits business websites to find contact emails
- Email Campaign: Sends personalized outreach emails using templates
Configuration Requirements
The Outreach class requires the following configuration:google_maps_scraper_niche: Target business nicheemail_credentials: SMTP credentials for sending emailsusername: Email usernamepassword: Email passwordsmtp_server: SMTP server addresssmtp_port: SMTP port number
outreach_message_subject: Email subject templateoutreach_message_body_file: Path to email body template filescraper_timeout: Maximum scraper execution time
Email Template Variables
Email templates support the following variables:{{COMPANY_NAME}}: Replaced with the scraped company name