1
我有一個端點,我發佈數據。Python - 解析請求響應
r = requests.post(url, data=data, headers=headers)
我得到在Javascript以下響應: -
throw 'allowScriptTagRemoting is false.';
(function() {
var r = window.dwr._[0];
//#DWR-INSERT
//#DWR-REPLY
r.handleCallback("1", "0", {
msg: "",
output: {
msg: "Showing from city center",
resultcode: 1,
scrpresent: true,
srclatitude: "28.63244546123956",
srclongitude: "77.21981048583984",
},
result: "success"
});
})();
如何解析響應?我基本上想要output
json。你可以得到一樣的嗎?
正則表達式和json.loads –