python-linkedin icon indicating copy to clipboard operation
python-linkedin copied to clipboard

get_companies from a list of companies returns simplejson.scanner.JSONDecodeError

Open arvindvg opened this issue 11 years ago • 0 comments

When trying to get details on a list of companies I get the following error

temp = application.get_companies(company_ids=work_id, selectors=['company-type','industries','blog-rss-url','twitter-id','employee-count-range']) Traceback (most recent call last): File "", line 1, in File "/Users/arvindvg/anaconda/lib/python2.7/site-packages/linkedin/linkedin.py", line 336, in get_companies return response.json() File "/Users/arvindvg/anaconda/lib/python2.7/site-packages/requests/models.py", line 763, in json return json.loads(self.text, **kwargs) File "/Users/arvindvg/anaconda/lib/python2.7/site-packages/simplejson/init.py", line 501, in loads return _default_decoder.decode(s) File "/Users/arvindvg/anaconda/lib/python2.7/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/Users/arvindvg/anaconda/lib/python2.7/site-packages/simplejson/decoder.py", line 393, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Is this is can issue with content thats empty that gets returned ? or something else

arvindvg avatar Jul 31 '14 00:07 arvindvg