阅读背景:

从网页中检索csv文件

来源:互联网 

I would like to save a csv file from a web page. However, the link on the page does not lead directly to the file, but it calls some kind of javascript, which leads to the opening of the file. In other words, there is no explicit url address for the file i want to download or at least I don't know what it should be. I found a way to download a file by activating Internet Explorer,going to the web page and pressing the link button and then saving the file through the dialog box. This is pretty ugly, and I am wondering if there is a more elegant (and fast) method to retrieve a file without using internet explorer(e.g. by using urllib.retrieve method) The javascript is of the following form (see the comment, it does not let publish the source code...):I would like to save a csv file from a web page




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: