Objective: A tool to automatically send personalized direct messages to your LinkedIn connections. This tool is intended for efficient and targeted outreach.
NOTE: This tool is designed to interact with the LinkedIn website in a way that mimics human behavior to reduce the risk of account suspension. However, any form of automation is against the LinkedIn Terms of Service. Use this tool responsibly and at your own risk.
To get started, you need Python 3 and pip installed.
-
Clone the repository:
git clone <repository_url> cd LinkedInAutoDM
-
Install dependencies:
pip install -r requirements.txt
The application requires credentials and other settings to be configured in a .env file.
-
Create the environment file: Make a copy of the example file and name it
.env:cp .env.example .env
-
Edit the
.envfile: Open the.envfile in a text editor and add your LinkedIn credentials:LI_USERNAME="your_linkedin_email@example.com" LI_PASSWORD="your_linkedin_password"
Before you can send messages, you need to perform these two one-time setup steps:
-
Create the Database: This command creates the
data.sqlite3file that will track your messaging activity.python db.py
-
Log In to LinkedIn: This command will open a browser and ask you to log in. After a successful login, it will save a session cookie so you don't have to log in again.
python auth.py
Once you have completed the setup, you only need to run these two commands to send messages:
-
Build the Message Queue:
python queue_builder.py
-
Send Messages:
python send.py
You can create and use different message templates.
-
Create a new template: Add a new
.mdfile in the/templatesdirectory. You can use{first}as a placeholder for the contact's first name. -
Select the template: Open
config.pyand change theTEMPLATEvariable to point to your new file.TEMPLATE = "templates/your_new_template.md"
Scrape public LinkedIn profile data at scale with Proxycurl APIs.
- Scraping Public profiles are battle-tested in court in HiQ VS LinkedIn case.
- GDPR, CCPA, SOC2 compliant
- High rate Limit - 300 requests/minute
- Fast APIs respond in ~2s
- Fresh data - 88% of data is scraped real-time, other 12% are not older than 29 days
- High accuracy
- Tons of data points returned per profile
Built for developers, by developers.
This tool is for educational purposes only. Automating interactions on LinkedIn violates their Terms of Service. Use this tool responsibly and at your own risk. The developers are not responsible for any consequences of using this software, including but not limited to account suspension or termination.
