File size: 2,259 Bytes
b7d27f0
a70de9b
 
 
 
b7d27f0
a70de9b
b7d27f0
 
 
a70de9b
 
b7d27f0
d7c693f
 
a70de9b
d7c693f
 
 
a70de9b
 
 
 
 
d7c693f
a70de9b
d7c693f
a70de9b
 
 
 
d7c693f
a70de9b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d7c693f
a70de9b
 
 
 
d7c693f
a70de9b
 
 
 
 
 
 
 
 
 
 
 
d7c693f
a70de9b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
title: AI Lead Scraper & Email Tool
emoji: 📧
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 5.4.0
app_file: app.py
pinned: false
---

# AI Lead Scraper & Email Tool

## Overview

This tool helps automate lead generation and email outreach by combining the power of AI scraping with email automation. It enables users to extract contact information from websites and automatically send personalized emails to potential leads.

## Features

- **AI-Powered Lead Scraping**: Extract contact information from websites using advanced AI models.
- **Email Automation**: Configure SMTP settings and send personalized emails to leads.
- **Customizable Templates**: Create and customize email templates for different outreach campaigns.
- **Batch Sending**: Send emails to multiple leads with configurable delays to avoid spam filters.
- **User-Friendly Interface**: Easy-to-use Gradio interface with separate tabs for scraping, email settings, and campaign sending.

## Setup

1. Create a `.env` file in the root directory with your Hugging Face API token:
   ```
   HUGGINGFACEHUB_API_TOKEN=your_huggingface_api_token
   ```

2. Install dependencies:
   ```
   pip install -r requirements.txt
   ```

3. Run the application:
   ```
   python app.py
   ```

## Usage

### Lead Scraping
1. Navigate to the "Lead Scraping" tab
2. Enter the website URL to scrape for contact information
3. Adjust the number of leads to extract
4. Click "Scrape Leads" to start the extraction process

### Email Settings
1. Navigate to the "Email Settings" tab
2. Configure your SMTP server settings
3. Create your email template with subject and body
4. Test your configuration by sending a test email

### Send Campaign
1. Navigate to the "Send Campaign" tab
2. Set the delay between emails to avoid spam filters
3. Click "Send Emails to All Leads" to start the campaign

## Dependencies

- gradio==5.4.0
- langchain_community==0.3.5
- python-dotenv==1.0.1
- scrapegraphai==1.28.0

## Note

This tool uses AI models from Hugging Face for scraping. You need to obtain an API token from Hugging Face and add it to your `.env` file for the application to work.

## Contributing

Contributions are welcome! Please submit pull requests or open issues to suggest improvements.