如何用VBA從公開資訊觀測站抓每日股價 - 財經

By Thomas
at 2017-06-01T23:27
at 2017-06-01T23:27
Table of Contents
最近剛碰VBA,目前資料都是從鉅亨網及Histock等網站來的
但其實我還是比較想從公開資訊觀測站抓(MOPS),因為比較可靠資訊也較多
以下是資料來源
http://www.tse.com.tw/zh/page/trading/exchange/STOCK_DAY.html
目前有一個問題是MOPS必須輸入Ticker再按查詢
如果是鉅亨網網址後面就會有我要查詢的股票代號
(VBA就可以根據此網址直接找到該股資訊,如下3017)
http://www.cnyes.com/twstock/profile/3017.htm
想請教各位都是如何用VBA從MOPS抓這類型的網頁資料?
另外想請問有在抓網頁資料的前輩都是如何抓的?
因為用VBA當有新公司就要改一堆語法,覺得不如直接複製貼上來得快
Thx
--
但其實我還是比較想從公開資訊觀測站抓(MOPS),因為比較可靠資訊也較多
以下是資料來源
http://www.tse.com.tw/zh/page/trading/exchange/STOCK_DAY.html
目前有一個問題是MOPS必須輸入Ticker再按查詢
如果是鉅亨網網址後面就會有我要查詢的股票代號
(VBA就可以根據此網址直接找到該股資訊,如下3017)
http://www.cnyes.com/twstock/profile/3017.htm
想請教各位都是如何用VBA從MOPS抓這類型的網頁資料?
另外想請問有在抓網頁資料的前輩都是如何抓的?
因為用VBA當有新公司就要改一堆語法,覺得不如直接複製貼上來得快
Thx
--
Tags:
財經
All Comments

By Blanche
at 2017-06-02T00:34
at 2017-06-02T00:34

By Elvira
at 2017-06-06T11:01
at 2017-06-06T11:01

By Ingrid
at 2017-06-07T00:26
at 2017-06-07T00:26

By Jacob
at 2017-06-07T03:03
at 2017-06-07T03:03

By Kumar
at 2017-06-09T22:58
at 2017-06-09T22:58

By Hedda
at 2017-06-11T07:04
at 2017-06-11T07:04

By Kyle
at 2017-06-14T05:26
at 2017-06-14T05:26

By Hamiltion
at 2017-06-18T21:37
at 2017-06-18T21:37

By Steve
at 2017-06-19T16:44
at 2017-06-19T16:44

By Anthony
at 2017-06-20T08:11
at 2017-06-20T08:11

By Callum
at 2017-06-23T12:54
at 2017-06-23T12:54

By Emma
at 2017-06-28T04:05
at 2017-06-28T04:05

By Frederic
at 2017-07-02T17:49
at 2017-07-02T17:49

By Ina
at 2017-07-07T09:10
at 2017-07-07T09:10

By Iris
at 2017-07-11T12:33
at 2017-07-11T12:33

By Yuri
at 2017-07-12T12:49
at 2017-07-12T12:49

By George
at 2017-07-15T06:33
at 2017-07-15T06:33

By Skylar DavisLinda
at 2017-07-20T01:52
at 2017-07-20T01:52

By Quintina
at 2017-07-24T21:39
at 2017-07-24T21:39

By Lauren
at 2017-07-27T01:53
at 2017-07-27T01:53

By Odelette
at 2017-07-31T00:53
at 2017-07-31T00:53

By Megan
at 2017-08-04T14:13
at 2017-08-04T14:13

By Selena
at 2017-08-04T16:53
at 2017-08-04T16:53

By Hedwig
at 2017-08-06T04:44
at 2017-08-06T04:44

By Puput
at 2017-08-10T11:21
at 2017-08-10T11:21

By Olivia
at 2017-08-15T02:48
at 2017-08-15T02:48

By Una
at 2017-08-18T12:50
at 2017-08-18T12:50

By Charlie
at 2017-08-22T13:33
at 2017-08-22T13:33

By Quanna
at 2017-08-22T18:36
at 2017-08-22T18:36

By Odelette
at 2017-08-26T08:23
at 2017-08-26T08:23

By Candice
at 2017-08-29T05:01
at 2017-08-29T05:01

By Rachel
at 2017-08-31T14:28
at 2017-08-31T14:28

By Mary
at 2017-09-03T10:14
at 2017-09-03T10:14

By Caroline
at 2017-09-05T11:24
at 2017-09-05T11:24

By Andrew
at 2017-09-08T02:24
at 2017-09-08T02:24

By Elvira
at 2017-09-08T13:31
at 2017-09-08T13:31

By Andrew
at 2017-09-09T01:58
at 2017-09-09T01:58

By Mary
at 2017-09-13T08:44
at 2017-09-13T08:44

By Daph Bay
at 2017-09-14T20:05
at 2017-09-14T20:05
Related Posts
私人投資公司徵兼職程式/計量交易員

By Kama
at 2017-05-30T21:51
at 2017-05-30T21:51
twse個股資訊改版

By Agnes
at 2017-05-24T12:26
at 2017-05-24T12:26
尋找一起研究討論的夥伴

By Elma
at 2017-05-21T20:56
at 2017-05-21T20:56
理財周刊講座

By Bethany
at 2017-05-19T08:38
at 2017-05-19T08:38
2017/05/08-2017/05/12粽子節前閒聊

By Una
at 2017-05-08T08:45
at 2017-05-08T08:45