如何使用wget或curl从该站点下载文件?

如何使用wget或curl从该站点下载文件?,curl,wget,Curl,Wget,我想使用wget或curl从(韩国股票交易所)获取excel文件 此站点中的表单标签如下所示 <div class="board"> <h3 class="item"></h3> <!-- search --> <div class="search"> <form id="exKrx" onsubmit="return doSearch();" method="post" action="/por_eng/cor

我想使用wget或curl从(韩国股票交易所)获取excel文件

此站点中的表单标签如下所示

<div class="board">

<h3 class="item"></h3>
<!--

 search 

-->
<div class="search">
    <form id="exKrx" onsubmit="return doSearch();" method="post" action="/por_eng/corelogic/process/m2/m2_1/m2_1_3/hpeng02001_03_01.xhtml?data-only=true" name="exKrx">
        <fieldset>
            <legend class="dpn"></legend>
            <table summary="searching by conditions"></table>
            <!--

             body_head_btn 

            -->
            <div class="body_head_btn">
                <input class="image" type="image" onclick="doSearch(); return false;" alt="search" src="http://inc.krx.co.kr/image/eng/cm/btn/bt1ask.gif"></input>
                <a title="Download" onclick="doExcel(); return false;" href="button.jsp">
                    <img alt="Download" src="http://inc.krx.co.kr/image/eng/cm/btn/bt1download.gif"></img>
                </a>
            </div>
            <div class="infomenu"></div>
            <!--

             //body_head_btn 

            -->
        </fieldset>
    </form>
</div>

如何解决此问题???

wget中的url请求不正确,下载按钮触发
doExcel()
函数,该函数最终调用文件中的
excelDownLoad()

它将从下面的当前url将数据保存在表中,并导出为excel文件

您似乎无法直接下载excel文件

如果我是你,我将使用脚本通过下载数据并自行构建excel文件

关于如何在chrome中检查post请求,请在问题中使用,如果相同,请列出您要下载的数据,以便其他人也可以尝试。我找不到您提到的确切html页面。正在检查。。在chrome浏览器和控制台中:grid.excelDownLoad(“/por_eng”);
wget -o ~/download/test.xls --post-data="se_key=TSIM5w+jLsm9LGMF0U4q1Q==" http://eng.krx.co.kr/por_kor/corelogic/process/m2/m2_1/m2_1_4/hpkor02001_04.xhtml?data-only=true