This simple Python project allows you to automatically update your LinkedIn profile picture daily with a different picture from a specified folder. You can use it to keep your LinkedIn profile fresh and engaging with minimal effort.
Warning: this tool is all in good fun and perfectly harmless, but use it at your own risk. Using automated tooling on LinkedIn could possibly get your account banned.
-
Go to the project's GitHub repository at https://github.com/rambling-ai/profile_pic_updater.
-
Click on the
Codebutton and selectDownload ZIP. -
Once the ZIP file is downloaded, extract it to a location of your choice.
-
Open Terminal.
-
Use the
cdcommand to navigate to the extracted folder. For example, if the extracted folder is on your Desktop, you would typecd ~/Desktop/profile_pic_updater-mainand press Enter. -
Once you're inside the folder, install Playwright by typing
python3 -m pip install playwrightand then press Enter. -
After the installation of Playwright is complete, type
playwright installfollowed by Enter to download the required browser binaries. -
Inside this folder you will find another folder called
pics_to_upload. This is where you should place the pictures you want to use for your LinkedIn profile. Make sure these pictures are in either .jpg or .png format.
To run the scripts manually, follow these steps:
-
Open Terminal.
-
Navigate to the script folder as explained in the Setup section above.
-
Type
python3 daily_pic_update.pyand press Enter. This will run the script, which will update your LinkedIn profile picture with the first picture in thepics_to_uploadfolder.
To automate this task, we will use a feature of macOS called "cron". Cron allows you to schedule tasks to run automatically at specific times. In this case, we will set it up to run daily_pic_update.py once a day.
-
Open Terminal.
-
Type
crontab -eand hit Enter. This command opens your crontab file in an editor. -
Add a new line that looks like this:
0 0 * * * /usr/local/bin/python3 /path/to/daily_pic_update.pyMake sure to replace
/path/to/with the actual path to thedaily_pic_update.pyscript. This line will run your script every day at midnight. -
Save and exit the editor (press CTRL + X, then Y, then Enter).
-
You can check if your cron job has been added by typing
crontab -lin Terminal.
If you run into any issues while setting up or running the scripts, please check the following:
-
Make sure Python and Playwright are installed correctly. You can test your Python installation by typing
python3 --versionin Terminal. You can test your Playwright installation by typingpython3 -m playwrightin Terminal. -
Make sure the
daily_pic_update.pyandupdate_profile_pic.pyscripts are in the same folder and that you've correctly navigated to this folder in Terminal before trying to run them. -
Make sure your
pics_to_uploadfolder contains at least one .jpg or .png picture.
Enjoy your daily fresh LinkedIn profile pictures!