Here’s a simple README.md file to guide users on how to get started with your LinkedIn messaging bot:
This LinkedIn bot automates sending personalized messages to your connections. Follow these steps to set up, configure, and run the bot.
-
Install Python: Ensure you have Python installed on your system. Download Python
-
Install Required Packages: Install the necessary Python packages using
pip:pip install selenium
-
Download ChromeDriver:
- Download the ChromeDriver version compatible with your Chrome browser: ChromeDriver Downloads
- Alternative: https://googlechromelabs.github.io/chrome-for-testing/#stable
- Place the
chromedriverbinary in a known location, such as/path/to/chromedriver.
-
LinkedIn Account:
- A LinkedIn account with connections you want to message.
Download or clone this repository:
git clone https://github.com/tantrija/linkedin-messaging-bot.git
cd linkedin-messaging-botCreate a config.json file in the project directory with the following content:
{
"email": "your-linkedin-email@example.com",
"password": "your-linkedin-password",
"chromedriver_path": "/path/to/chromedriver"
}- Replace
your-linkedin-email@example.comwith your LinkedIn email. - Replace
your-linkedin-passwordwith your LinkedIn password. - Update the
chromedriver_pathwith the path to your ChromeDriver.
Ensure the script references the correct paths and loads the configuration dynamically:
- Script automatically loads values from
config.json.
-
Start the Bot: Run the Python script:
python linkedin_bot.py
-
How It Works:
- Logs into LinkedIn using your credentials.
- Scrolls through your connections to find those without prior messages.
- Sends personalized messages using the provided template.
-
chromedrivernot found:- Ensure the
chromedriverpath inconfig.jsonis correct. - Make sure the driver is executable:
chmod +x /path/to/chromedriver
- Ensure the
-
Bot doesn't click buttons:
- LinkedIn may update their website layout. Update the XPaths in the script accordingly.
-
Two-factor Authentication:
- Disable two-factor authentication temporarily or use session cookies for login.
Use this bot responsibly. Spamming or violating LinkedIn's terms of service can lead to account suspension.
This file can be saved as README.md or a similar getting_started.txt file for distribution.