tomquirk / linkedin-api

👨‍💼 LinkedIn API for Python
https://pypi.org/project/linkedin-api
MIT License
1.95k stars 430 forks source link

JSONDecodeError #270

Closed ahsentekd closed 3 weeks ago

ahsentekd commented 1 year ago

error on while getting profile skills on some profiles. profile["skills"] = self.get_profile_skills(public_id=public_id, urn_id=urn_id)

Merlin1A commented 1 year ago

See my response to issue #272. If that does not help, please post some more details so we can help.

ahsentekd commented 1 year ago

thx bud, do u have any strategy for get no banning or handle it?

Merlin1A commented 1 year ago

I'm currently working through this code for my own project, so I do not fully understand this whole code base yet.

If your ban question has to do with this error, can you post more details? Is the random time evade not working for you?

If your evading ban question is not related to this issue, please post a new issue with some details, and I'll help.

For reference, the current method of evading bans uses a random time interval. That can be seen in the default_evade() function in the linkedin.py file.

tomquirk commented 3 weeks ago

JSONDecodeError just means that your request didn't return JSON, which typically means that some LinkedIn rate-limiting has kicked in, or your account has been restricted.