MailSpreader

πŸ“§ Automate LinkedIn-based mailings

The MailSpreader is an open-source Python project that automates the creation of a structured spreadsheet used for targeted email campaigns via Thunderbird. It collects and processes company information from LinkedIn, extracts relevant details, and formats them into a mailing-ready table.

🎯 Highlights

πŸ’‘ Feature πŸ“Œ Description
🎯 Targeted Lead Scraping Collect LinkedIn profiles filtered by topic and location
🌐 Smart Data Extraction Get company websites and summaries from LinkedIn β€œAbout” sections
πŸ“§ Email Retrieval Use Google to discover emails via domain-based queries
✍️ Auto Summary Builder Convert text into business blurbs: β€œspecialized in…”
πŸ“ Mail-Ready Export Generate Thunderbird-compatible spreadsheets

βš™οΈ Workflow Overview

  1. Input Criteria: Define target themes and locations.
  2. Profile Collection: Scrape LinkedIn for matching companies.
  3. Data Extraction: Retrieve website and β€œAbout” content from each profile.
  4. Email Retrieval: Use Google queries to find contact emails tied to domain names.
  5. Summary Construction: Parse and rephrase descriptions for clarity and consistency.
  6. Spreadsheet Generation: Output all data in a tabular format ready for Thunderbird.

πŸ“Š Example Spreadsheet Format

Company Name Business Summary Email
Example Corp specialises in renewable energy solutions contact@example.com
TechSoft Ltd specialises in SaaS for retail management info@techsoft.io

πŸ“ Project Structure

mailspreader/
β”œβ”€β”€ data/                     # Input/output data files
β”‚   └── prospect_list.csv
β”œβ”€β”€ mailspreader/            # Core package
β”‚   β”œβ”€β”€ linkedin_scraper.py  # Functions to scrape LinkedIn profiles
β”‚   β”œβ”€β”€ website_parser.py    # Email extraction from websites
β”‚   β”œβ”€β”€ summarizer.py        # Summary generation logic
β”‚   └── exporter.py          # Spreadsheet generation
β”œβ”€β”€ assets/                  # Images and media for documentation
β”‚   └── img/
β”œβ”€β”€ run.bat                  # Windows shell script to run the main program
β”œβ”€β”€ run.sh                   # Shell script to run the main program
β”œβ”€β”€ .gitignore
β”œβ”€β”€ LICENSE
β”œβ”€β”€ README.md
β”œβ”€β”€ requirements.txt
└── main.py                  # Entry-point script