1
XYxe 2017-06-03 21:23:19 +08:00
s = requests.get("http://news.gtimg.cn/notice_more.php?q=sz300144&page=1")
t = s.text[20:-2] t = t.replace("'", '"') json.loads(t) |
2
ruoyu0088 2017-06-03 21:27:41 +08:00 1
import requests
res = requests.get("http://news.gtimg.cn/notice_more.php?q=sz300144&page=1") text = res.content.decode() json_text = text[text.find("{"):text.rfind("}") + 1].replace("'", '"') import json json.loads(json_text) |