joeyism / linkedin_scraper

A library that scrapes Linkedin for user data
GNU General Public License v3.0
2.12k stars 582 forks source link

Basic example only return empty result? #123

Open Rapid1898-code opened 2 years ago

Rapid1898-code commented 2 years ago

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?

JamesSatherley commented 2 years ago

I'm getting this issue too. Any solution?

machinelearningzuu commented 2 years ago

Seems we can't use this anymore, unless they update the tool for LinkedIn 2022 UI version

JamesSatherley commented 2 years ago

Linked in UI changes every couple weeks so it'll stay broken