tomquirk / linkedin-api

👨‍💼Linkedin API for Python
MIT License
1.71k stars 401 forks source link

Getting RequestsJSONDecodeError(e.msg, e.doc, e.pos) error while using get_profile() endpoint. #314

Open mittalhimang opened 1 year ago

Asilomare commented 1 year ago

This commonly means the cookies used in the request are expired. Try calling Linkedin( ... cookies=None) or deleting the email.com.jr file. This will force the API to request new cookies. Beware, expired cookies can mean that Linkedin has restricted your account.

EDIT: check linkedin_api/settings.py for cookie file location