ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ½Ð°ª¤â¸Ñ´bÀ°¦£! ¤WÂdºô¯¸¤S§ïª©¤F!§ì¤£¨ì¸ê®Æ

[µo°Ý] ½Ð°ª¤â¸Ñ´bÀ°¦£! ¤WÂdºô¯¸¤S§ïª©¤F!§ì¤£¨ì¸ê®Æ

¦U¦ì°ª¤â¤j¤j¦n
¤p§Ì­ì¥»°Ñ¦Ò§O¤Hºô¤W¥Îxmlhttp¨Ó §ì¨ú¤WÂd¥æ©ö©ú²Ó. ¬Q¤Ñµo²{ÂdÂiºô¯¸§ïª©,¤p§Ì¥ÎFiddler¬d«Ê¥]¬Ý¤£¥X©Ò¥HµM!
Àµ½Ð°ª¤âÀ°¦£¸Ñ´b! ¤p§Ì·P¿E¤£ºÉ!

Sub ¤U¸ü¥æ©ö©ú²Ó(FilePath As String, stockid As String, saledate As String)
    Set oXMLHTTP = CreateObject("Microsoft.XMLHTTP")
    Set objStream = CreateObject("ADODB.stream")
   
    webdate = Replace(saledate, Year(Date), CStr(CInt(Year(Date)) - 1911))
    FileName = FilePath + "\" + saledate + "_" + stockid + ".CSV"
   
    With oXMLHTTP
        .Open "GET", "http://www.gretai.org.tw/ch/stock/aftertrading/broker_trading/download_ALLCSV.php", False
        '.Open "POST", aa, False
        .setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
        .send "curstk=" & stockid & "&stk_date=" & webdate
        
        If .readyState = 4 Then '.Status = 200
            With objStream
                .Type = 1       '¥H¤G¶i¦ì¤è¦¡¾Þ§@
                .Open           '¶}±Òª«¥ó
                .Write oXMLHTTP.ResponseBody
               
                If Dir(FileName) <> "" Then Kill FileName
                .SaveToFile FileName
                .Close
            End With
        End If
    End With
   
    Set oXMLHTTP = Nothing
    Set objStream = Nothing
End Sub

¥H¤U¬O¤WÂdºô¯¸ªººô§}
http://www.gretai.org.tw/ch/stock/aftertrading/broker_trading/brokerBS.php

·PÁ±z~~~~
Happy

¥»©«³Ì«á¥Ñ million2billion ©ó 2014-1-15 10:24 ½s¿è

¦^´_ 19# white5168


    W¤j, ·PÁ±z!
§Ú¤]¬O¥Îdelay ¨Ó¨¾¤îÂêIP. ¤£¹L¤U¸ü³t«×ÅܺC¦n¦h!
Happy

TOP

ªº½T§ïª©¤F¡A¦Û¤v¤]ªá¤FÂI®É¶¡­×§ï

ºô§}Ãþ¦ü

http://www.gretai.org.tw/ch/stock/aftertrading/broker_trading/download_ALLCSV.php?curstk=1558&stk_date=1021230

¨ä¾l¦Û¦æ­×§ï

TOP

m¤j¡A¬O°Ñ¦Òiinfoªºµ{¦¡½X¶Ü?
¥L¤w¸g­×¥¿¤F¡A¥i¥H¥h¤U¸ü´ú´ú¬Ý¡A³sµ²¥X³B http://white5168.blogspot.tw/2012/10/excel-vba.html#.UsZLU9IW2E7

TOP

¦^´_ 17# joey0415


    ±ß¤@ÂI¦A¨Ó­«·s¤U¸ü, ÁÂÁ±z!

J¤j, ¦³±z¯u¦n~~~~·P®¦!!
Happy

TOP

¦^´_ 16# million2billion

·|¶Ü¡I¤WÂd§ìÀɤ@ª½«Ü§Ö¡A§Y¨Ï´«ª©ÁÙ¬O¦p¦¹¡A¤W¥«¤ñ¸û·Ð¤H´N¬O¡K

TOP

¦^´_ 15# joey0415


·PÁÂJoey¤j¤j,
¥Ø«e¤U¸ü¶¶ºZ, ³o¦¸Âd¥xºô¯¸§ïª©«á, ÁÙ¬O¦³ÂI¥d¥dªº! ¥u¯à¥[¤@¨Ç®e¿ù³B­ù!
ÁÂÁ±z!
Happy

TOP

«Ü¥¿±`®@¡I¨S¦³°ÝÃD®@

¥Îget¤£¬Opost

TOP

¦^´_ 2# joey0415

joey ¤j¤j,
§ó§ï¦r¦ê«á, ¥u¯à¤U¸ü¨ì¼ÐÀY¦Ó¤w, ¥æ©ö¸ê®Æ³£¬OªÅ¥Õ, ©Ò¥H¥Ø«eÁÙ¬O¥u¯à¥Î¤â°Ê¤U¸ü!
½Ð±Ð±z! ¬O§_ºô§}¦³ÅÜ? ÁÙ¬O¯à¦³¨ä¥L¸Ñªk?
ÁÂÁ±z!
Happy

TOP

²{¦b´Nºâ·Q¤â°Ê¤U¸üÀɮפ]¤£¦æ¡A¦]¬°ºô¯¸¶i¤£¥h¡A¨º¨ÇªÑ²¼³nÅ餽¥qªº­û¤u¤ß²z¤@©w«Ü¹Ã¡A¤£¯à¸ó¦~¡AÁÙ­n¯Ó¦b¤½¥qµ¥·Ý­Ì½à½ç¸ê®Æ¡A¯u¥i¼¦¡A¯¬©Ò¦³¤H·s¦~§Ö¼Ö¡I

TOP

        ÀR«ä¦Û¦b : ¦³¤ß´N¦³ºÖ¡A¦³Ä@´N¦³¤O¡A¦Û³yºÖ¥Ð¡A¦Û±oºÖ½t¡C
ªð¦^¦Cªí ¤W¤@¥DÃD