linkedin_scraper icon indicating copy to clipboard operation
linkedin_scraper copied to clipboard

css class not found

Open matardy opened this issue 3 years ago • 6 comments

 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?

matardy avatar Jul 27 '22 17:07 matardy

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.

ernests avatar Aug 08 '22 12:08 ernests

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

ianbongs avatar Aug 29 '22 08:08 ianbongs

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

matardy avatar Aug 30 '22 17:08 matardy

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

valentijnverberk avatar Sep 05 '22 16:09 valentijnverberk

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.

matardy avatar Sep 05 '22 16:09 matardy

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

machinelearningzuu avatar Sep 29 '22 02:09 machinelearningzuu