【发布时间】:2019-12-25 02:28:05
【问题描述】:
我正在尝试抓取 this page 以在 excel 中下载文件。 enter image description here 直到现在我一直在尝试这个,但它对我没有帮助:
library(rvest)
url_smv<-"http://www.smv.gob.pe/Frm_ValorCuotaDetalle_V2.aspx?in_ac_pre_ope=A&tip_fon_desc=TODAS&in_ad_fecha=24/12/2019"
html_nodes(read_html(url_smv), css = "#cbExcel")
download.file(url_smv,destfile ="s.xls",mode="w")
df<-read_excel("s.xls",skip = 14) #it doesn't work for me
这只会下载 html 格式的页面。 idk如何获取包含java应用程序的url(javascript:__doPostBack('cbExcel',''))来下载Excel
.
【问题讨论】:
标签: javascript r web-scraping rvest