我在 chromedriver 中使用 selenium。我可以得到链接
由
lnk=browser.find_element_by_id("ContentPlaceHolder1_lnkDownload")
并使用 lnk.click()
但不是将其保存到本地文件夹 在网页链接中显示为
<a id="ContentPlaceHolder1_lnkDownload" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$lnkDownload','')"><i class="fa fa-download iconfont"></i></a>
我不知道文件名,我知道它是 CSV 文件。 所以我想直接打开Pandas Dataframe。