Dear all,
I try to use the API wrapper to download a large amount of data (https://github.com/mustberuss/PatentsView-APIWrapper to do ). After customizing sample_config.cfg file and running the code, I got the following error message:
---------------------------------------------------------------------------
JSONDecodeError Traceback (most recent call last)
~/PatentsView-APIWrapper/api_wrapper.py in <module>()
113 print("File not found: ", sys.argv[1])
114
--> 115 query(sys.argv[1])
~/PatentsView-APIWrapper/api_wrapper.py in query(configfile)
26 directory = json.loads(parser.get(q, 'directory'))
27 input_type = json.loads(parser.get(q, 'input_type'))
---> 28 fields = json.loads(parser.get(q, 'fields'))
29
30
/ihome/crc/install/python/miniconda3-3.7/lib/python3.7/json/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
346 parse_int is None and parse_float is None and
347 parse_constant is None and object_pairs_hook is None and not kw):
--> 348 return _default_decoder.decode(s)
349 if cls is None:
350 cls = JSONDecoder
/ihome/crc/install/python/miniconda3-3.7/lib/python3.7/json/decoder.py in decode(self, s, _w)
335
336 """
--> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
338 end = _w(s, end).end()
339 if end != len(s):
/ihome/crc/install/python/miniconda3-3.7/lib/python3.7/json/decoder.py in raw_decode(self, s, idx)
353 obj, end = self.scan_once(s, idx)
354 except StopIteration as err:
--> 355 raise JSONDecodeError("Expecting value", s, err.value) from None
356 return obj, end JSONDecodeError: Expecting value: line 1 column 135 (char 134)
__________________________________________________________________________
I was unable to figure out what might be the problem here? Any advice would be much appreciated!
Lucy