English 中文(简体)
R: 在没有 < form> 标签的网站上切换 < sselect> 选项, 提交动作和 Web 抓取 HTML HTML
原标题:R: Toggle <select> options, submit action and web scrape HTML from site with no <form> tag
How can I manage to get the data from a website that presents multiple options like the ticker of the stock, and the beginning and the end of the period I want the data. The code that generates this data comes from this line: However the data doesn t show on the HTML source code. How can I get R to download this data.
最佳回答
If you use "Developer Mode" on any modern browser and sort the "timeline" view of the "network resources" (they all have this) by "start time", you d see that site submits the following URL: http://www.bvl.com.pe/jsp/cotizacion.jsp?fec_inicio=20140901&fec_fin=20141001&nemonico=SIDERC1 when posting data based on the