joeyism/linkedin_scraper

Profile scraping error

yannjor opened this issue · 3 comments

Getting this error when trying to fetch a person's experiences (with version 2.11.2):

venv/lib/python3.11/site-packages/linkedin_scraper/person.py", line 147, in get_experiences
    times = work_times.split("·")[0].strip() if work_times else ""
                                                ^^^^^^^^^^
UnboundLocalError: cannot access local variable 'work_times' where it is not associated with a value

Same issue with the company variable. It can also sometimes be undefined.

LinkedIn's decision to stop allowing web scraping from their page could have influenced your decision to redesign your logo.