ªð¦^¦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

¦^´_ 2# joey0415


  J¤j,
½Ð´£ÂI¤p§Ì! ¥i¥H¤U¸ü,«oµo²{¤U¸üªº³£¬O¨S¦³¥æ©ö¸ê®Æªº *.csvÀÉ ,¬O°Ñ¼Æ¦³­þ¸Ì¤£¦P¤F??  
·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 "POST", "http://www.gretai.org.tw/ch/stock/aftertrading/broker_trading/download_ALLCSV.php", 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
Happy

TOP

½Ð±Ð J¤j,
"application/x-www-form-urlencoded" ¬O§_À³§ï¦¨ "application/csv"
·PÁ±z~~~~
Happy

TOP

¦^´_ 2# joey0415


    ·PÁÂJ¤j,
¦p±z©Ò»¡! ­×§ï¦r¦ê´NOK¤F~~

ÁÂÁ±z~~~~
Happy

TOP

¦^´_ 6# kcl00168

¨Ì·ÓJ ¤jªº´£¥Ü, ­×§ï³o¤@­Ó¦ì§}, ´N¥i¥H¤F~~
­ì¥»ªº: http://www.gretai.org.tw/ch/stock/aftertrading/broker_trading/download_ALLCSV.php
­×§ï«á: http://www.gretai.org.tw/ch/stock/aftertrading/broker_trading/download_ALLCSV.php?curstk=1558&stk_date=1021230

ÃÒ¥æ©Ò¦³®É·|§ï¹L¨Ó¤S§ï¹L¥h~¯uªº¬O@%*&#.,^#
Happy

TOP

¦^´_ 8# kcl00168


    §Ú¦³¨ÇÀɮפU¸ü¤]¤£§¹¥þ,±¡ªp¸ò±z­z»¡ªºª¬ªp¤@¼Ë~~~
¶Ë¸£µ¬¤F~~~~
Happy

TOP

¦^´_ 9# million2billion

serverºÝ§ïª©«á, ¤£ª¾¹D¬O¤£Ã­ÁÙ¬O·|¾×£®~~~~²{¦b³sºô­¶¤]¶i¤£¥h. ºô­¶°T®§¦p¤U!


ÁV¿|¡IGoogle ÂsÄý¾¹µLªk³s½u¦Ü www.gretai.org.tw

½Ð­«·s¸ü¤J¡G www.-gretai.-org.-tw/-ch/-stock/-aftertrading/-broker_trading/-brokerBS.-php
Happy

TOP

¦^´_ 11# kcl00168


    K¤j, ·s¦~§Ö¼Ö~
§Ú¦­¤W§ï¹L¦ì§}«á, ¤U¸ü§«ô¤@ªº¸ê®Æ¥¿±`, ±ß¤W«á·Ç³Æ¤U¸ü§«ô¤G£x¸ê®Æ¤S¶}©l¤£Ã­©w¤F¡ã¡ã¡ã
§Ú§Ö­ú£{¡ã¡ã¡ã¡ã¶ã¶ã¶ã¡ã¡ã
Happy

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

¦^´_ 15# joey0415


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

TOP

        ÀR«ä¦Û¦b : ¦n¨Æ­n´£±o°_¡A¬O«D­n©ñ±o¤U¡A¦¨´N§O¤H§Y¬O¦¨´N¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD