tomquirk / linkedin-api

👨‍💼Linkedin API for Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

mittalhimang opened this issue · comments

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