linkedin_scraper icon indicating copy to clipboard operation
linkedin_scraper copied to clipboard

Profile scraping error

Open yannjor opened this issue 1 year ago • 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

yannjor avatar Jul 06 '23 08:07 yannjor

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

yannjor avatar Jul 06 '23 08:07 yannjor

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

amitbhargav0404 avatar Jul 12 '23 05:07 amitbhargav0404

https://www.linkedin.com/help/linkedin/answer/a1341387/prohibited-software-and-extensions?lang=en#:~:text=In%20order%20to%20protect%20our,automate%20activity%20on%20LinkedIn's%20website.

amitbhargav0404 avatar Jul 12 '23 05:07 amitbhargav0404