- ©«¤l
- 102
- ¥DÃD
- 17
- ºëµØ
- 0
- ¿n¤À
- 129
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-5-16
- ³Ì«áµn¿ý
- 2020-9-2
|
¥»©«³Ì«á¥Ñ lalalada ©ó 2012-7-27 15:50 ½s¿è
¦^´_ lalalada
½Ð¬Ý³o¸Ì
GBKEE µoªí©ó 2012-7-26 17:54
¦^´_ 2# GBKEE
ÁÂÁ§A!!:)
§Ú¤U¤È¤]µo²{¤F³oÓ³sµ² µM«á¥Î¤Fopen¤èªk
URL = "http://bsr.twse.com.tw/bshtm/bsContent.aspx?StartNumber=1101&download=csv"
Set WinHttpReq = CreateObject("Microsoft.XMLHTTP")
With WinHttpReq
.Open "OPEN", URL, False
.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
.Send
Set oStream = CreateObject("ADODB.Stream")
oStream.Open
oStream.Type = 1
oStream.Write WinHttpReq.ResponseBody
oStream.SaveToFile ("C:\TEST\" + bookname + "\" + code + ".csv")
oStream.Close
End With
¥i¬Oµo²{¤@ÓP©Rªº°ÝÃD
±q¨ºÓ¦ì§}¤U¸ü¤U¨ÓªºcsvÀɸê®Æ¦³¿òº|
¥]¬A¦ì¸m¨S¹ï»ô¡B¥¢¥h§@¥b³¡ªº½æ¥X¸ê®Æ©M¥k¥b³¡ªº¶i¥X¸ê®Æ
©Ò¥H¤~·Q¥Î¬d¸ßªí ÁöµMºC¥i¬OÀ³¸Ó¤£·|¿ù(·|¸òºô¶¤W¬Ý¨ì¤@¼Ë)
¥Ø«eªº·Qªk¬O:
1. ¯à¸Ñ¨McsvÀɮ׿ù»~¬O³Ì¦nªº¡A¤S§Ö¤S¤è«K¡A¥i¬O·Pı¨M©wÅv¦bÃÒ¥æ©Ò...(°½°½°Ý¤@¤U¦³¥i¯à¬O¥L̰ʤâ¸}¶Ü@@?)
2. §Q¥Îvba¨ú±oºô¶ì©l½X¡AµM«á·j´M¶½Xªº¥N½X
¦A¦¸·PÁª©¥Dªº¼ö¤ßÀ°§U!!:D |
|