import lib.search.bing_search as bing
bing.search("#twitterblades", 5)
Traceback (most recent call last):
File "", line 1, in
File "lib/search/bing_search.py", line 14, in search
results = bing.search(category,query_string,params).json() # requests 1.0+
File "/usr/lib/python2.7/dist-packages/requests/models.py", line 741, in json
return json.loads(self.text, kwargs)
File "/usr/lib/python2.7/dist-packages/simplejson/init**.py", line 488, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 389, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last): File "", line 1, in
File "lib/search/bing_search.py", line 14, in search
results = bing.search(category,query_string,params).json() # requests 1.0+
File "/usr/lib/python2.7/dist-packages/requests/models.py", line 741, in json
return json.loads(self.text, kwargs)
File "/usr/lib/python2.7/dist-packages/simplejson/init**.py", line 488, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 389, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)