楼主:
uncle925 (-新潮x乐活x便捷)
2021-02-09 23:02:30乳提 小弟想要抓取
https://mis.twse.com.tw/stock/api/getStockInfo.jsp?ex_ch=tse_2330.tw&
收盘价
function get_Stock_price(){
$url =
"https://mis.twse.com.tw/stock/api/getStockInfo.jsp?ex_ch=tse_2330.tw";
$data = file_get_contents($url);
$data = json_decode($data,true);
echo $data['msgArray']['c'];
}
却怎么试都抓不到资料,会是在get资料这一端就出现问题
还是语法有误吗?
第一次发文 如果有不妥或排版不佳请见谅