It's time to run the LinkedIn script to get the latest titles and current positions of CMP students and graduates.
To run the script follow the steps below and if it's not your first time running the scipt, you can just start from step 4:
Steps for running the LinkedIn script:
Make sure you have Python 3 downloaded on your device. You can check by running the command in your bash terminal and it should display the Python version if it is already installed.
python --version
Install all the needed Python packages using the requirements.txt present in the scripts/linkedin-scraper directory.
Download the Chrome Driver that is compatible with your OS and Chrome Version from this link. It should be a zip file of about 10 MBs or less. Extract it using WinRAR or a similar archive manager. Then copy the chromedriver.exe file to the scripts/linkedin-scraper directory.
Set the enivronment variables with valid LinkedIn credentials in the bash terminal as following:
and replace <email> and <password> with the actual LinkedIn credentials. Note, you should probably avoid using your main LinkedIn account credentials to avoid running the risk of it being banned by LinkedIn after multiple scraping.
Finally, you can run the script on all the class yaml files using the command below:
python "scripts/linkedin-scraper/run.py"
and if you want to run the script for a certain class only, use the command below and replace 20XX with the graduation year of said class:
If the script doesn't manage to scrap any data, make sure you have the <email> and <password> written correctly in the environment variables.
Make sure that you have a fast and stable internet connection while running the script since it will affect the results of the scraping.
After running the script and updating the yaml files, please create a PR, and assign this issue to it so that it can be closed later on and not forgotten.
It's been two weeks.
It's time to run the LinkedIn script to get the latest titles and current positions of CMP students and graduates.
To run the script follow the steps below and if it's not your first time running the scipt, you can just start from step 4:
Steps for running the LinkedIn script:
requirements.txt
present in thescripts/linkedin-scraper
directory.chromedriver.exe
file to thescripts/linkedin-scraper
directory.and replace
<email>
and<password>
with the actual LinkedIn credentials. Note, you should probably avoid using your main LinkedIn account credentials to avoid running the risk of it being banned by LinkedIn after multiple scraping.and if you want to run the script for a certain class only, use the command below and replace
20XX
with the graduation year of said class:Last Notes:
<email>
and<password>
written correctly in the environment variables.