python使用json时报错 json.decoder.JSONDecodeError: Invalid \escape: line 25 column 144 (char 3542

报错:
req = requests.get(url=target, headers=self.headers, verify=False, timeout=60)
html = json.loads(req.text, strict=False)
换个写法,不使用json,用正则
req = requests.get(url=target, headers=self.headers, verify=False, timeout=60)
html =re.findall(’“thumbURL”:"(.*?)"’, req.text)

你可能感兴趣的:(python使用json时报错 json.decoder.JSONDecodeError: Invalid \escape: line 25 column 144 (char 3542)