Here is an example to use selenium in python on linkedin.
This code will connect to linkedin and send message “testing” to the first friend
You have to change the username and password to do the authentication
this code is working in python 3.8 and selenium 4.14.0
1 | from selenium import webdriver |
1 | time.sleep(2) |
1 | driver.get("https://www.linkedin.com/search/results/people/?network=%5B%22F%22%5D&origin=FACETED_SEARCH") |