Here I am sharing a small portion of the Bot from my project.
pip install selenium
pip install parsel
download the chromdriver for selenium based on your pc browser version and changed the directory in line number 71.
Make sure about the linkedin account credentials in line number 74 and 75.
Note : the bot will collect the data through this account.
In line number 86 you need to provide a linkedin account profile link which you want to crawl.