vendredi 2 juillet 2021

Download data from “click download button” on a webpage with R

I am trying to load data from a webpage in R, which requires button-clicking to accomplish that. I just spent hours navigating to similar StackOverflow questions, but I did not manage. This here, for example.. There is an R package for downloading such data (GetTDData), but it does not allow downloading data from a specific year. Obviously, I could filter after getting the data, but it takes a lot of time, so selecting only the data for the current year would save important time.

Below is the link from where I try to download the data. Any of the data (for example "LFT_2021.xls") would be fantastic so that I can learn to download the rest (e.g. LFT_2021.xls)

https://www.tesourodireto.com.br/titulos/historico-de-precos-e-taxas.htm Thank you all!




Aucun commentaire:

Enregistrer un commentaire