1. 打開 Google 試算表
2. 輸入以下公式
=IMPORTXML("https://histock.tw/stock/00679b","//*[@id='Price1_lbTPrice']/span")
或
=Index(ImportHtml("http://bigcharts.marketwatch.com/advchart/frames/frames.asp?symb=00679b", "table"),3,1)
加個 substitute() 可以取代不想要的字
=Substitute(Index(ImportHtml("http://bigcharts.marketwatch.com/advchart/frames/frames.asp?symb=00679b", "table"),3,1),"Last:","")
沒有留言:
張貼留言