linkedin_scraper
linkedin_scraper copied to clipboard
Basic example only return empty result?
Hello - i tried the basic example with the following code -
from linkedin_scraper import Person, actions
from selenium import webdriver
from dotenv import load_dotenv, find_dotenv
import os
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import Service
load_dotenv(find_dotenv())
LINKEDIN_EMAIL = os.environ.get("LINKEDIN_EMAIL")
LINKEDIN_PW = os.environ.get("LINKEDIN_PW")
options = Options()
options.add_argument('--headless')
srv=Service(ChromeDriverManager().install())
driver = webdriver.Chrome (service=srv, options=options)
link = "https://www.linkedin.com/in/andre-iguodala-65b48ab5"
actions.login(driver, LINKEDIN_EMAIL, LINKEDIN_PW) # if email and password isnt given, it'll prompt in terminal
person = Person(link, driver=driver)
print(person)
But i only return an empty result for all lists.
Am i doing something wrong here? Or is there some general problem in the module?
I'm getting this issue too. Any solution?
Seems we can't use this anymore, unless they update the tool for LinkedIn 2022 UI version
Linked in UI changes every couple weeks so it'll stay broken