This project is a Selenium based automation that aims to help programming repetitive LinkedIn tasks. To do that, a script with the Selenium routines is provided together with a Dockerfile with a simple image that executes a crontab. For now, a single script has been implemented to turn on/off the #OpenToWork frame.
Please feel free to fork or contribute to this project. Keep in mind this is a personal project, feedback is more than welcome.
Please follow the next steps to call the script in your system:
- Open a terminal and clone the repository using:
git clone https://github.com/mbalos16/linkedin_toggler.git
- Navigate to the cloned folder using the
cd
command. - Create a new file with the name
secrets.json
in the root of the repository where you will add your LinkedIn credentials:
{
"email" : "<LinkedIn email>",
"pass" : "<LinkedIn password>"
}
- Create a new python environment using the following command:
python -m venv .venv
- Activate the python environment with
source .venv/bin/activate
- Install the requirements by using
pip install -r requirements.txt
Set your LinkedIn as #OpenToWork:
python main.py --open
Turn down #OpenToWork:
python main.py --close
- Build the image with the following command:
docker build -t <image_tag> .
- Run a container with the image by using:
docker run -it -v $(pwd/logs):/app/logs <image_tag>
To modify the open and close schedules edit the crontab configuration in configure_crontabs.sh
.
Pull requests and issues are welcome.
This repository is licensed under CC0. More info in the LICENSE file.
Copyright (c) 2024 Maria Magdalena Balos