You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/Users/abcd/Documents/GitHub/Linkedin-Notion-Transfer/linkedin3.py", line 155, in
person = Person(linkedin_url, about=[], experiences=[], educations=[], driver=driver, close_on_complete=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/linkedin_scraper/person.py", line 64, in init
self.scrape(close_on_complete)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/linkedin_scraper/person.py", line 89, in scrape
self.scrape_logged_in(close_on_complete=close_on_complete)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/linkedin_scraper/person.py", line 285, in scrape_logged_in
self.get_experiences()
File "/Library/Frameworks/Python.framework/Versions/3.11/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
The text was updated successfully, but these errors were encountered:
Hi, tried to solve it but couldnt find any solution. For now I am just use try/except on the part with worktimes because it doesnt matter in my use case. @joeyism any ideas why it is happening? Happens to some accounts, some working fine. I think this one should catch this error
Hello all,
this seems to be an issue within the person.py:
Traceback (most recent call last):
File "/Users/abcd/Documents/GitHub/Linkedin-Notion-Transfer/linkedin3.py", line 155, in
person = Person(linkedin_url, about=[], experiences=[], educations=[], driver=driver, close_on_complete=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/linkedin_scraper/person.py", line 64, in init
self.scrape(close_on_complete)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/linkedin_scraper/person.py", line 89, in scrape
self.scrape_logged_in(close_on_complete=close_on_complete)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/linkedin_scraper/person.py", line 285, in scrape_logged_in
self.get_experiences()
File "/Library/Frameworks/Python.framework/Versions/3.11/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
The text was updated successfully, but these errors were encountered: