joeyism / linkedin_scraper

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

css class not found #128

Open matardy opened 2 years ago

matardy commented 2 years ago
 self.name = driver.find_element_by_class_name(
            "top-card-layout__title"
        ).text.strip()

Raise this error:

selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".top-card-layout__title"}

Any updates on linkedin 2022?

ernests commented 2 years ago

It looks like Linkedin has made UI changes and by doing so also changed class names. As this tool is scraping UI it can't locate stuff anymore.

ianbongs commented 2 years ago

wait so does this mean this app can't work at all now?

matardy commented 2 years ago

Yes, it is actually a challenge to make scraping from linkedin because its UI keeps in constant change.

valentijnverberk commented 2 years ago

Facing the same issue - how can we get it to work?

matardy commented 2 years ago

We need to study LinkedIn Web Structure and change all css classes names. For example the container who shows the work experience in a LinkedIn profile used to have the name "experiences" now the name is "css-selector-8..." and so.

machinelearningzuu commented 2 years ago

What @matardy says is true. we can't use this anymore unless they update the tool for LinkedIn 2022 UI version