I would like to web scrape the earnings table ("RENDIMENTOS") of a stock from:
https://statusinvest.com.br/fundos-imobiliarios/rbrp11
The table has multiple pages, but the URL doesn't change.
Using the selectorGadget extension, it tells me that the name of this node is "tbody", but when reading this node, I can only see the first twelve records (first page). Is it possible to web scrape records from all pages?
I'm trying this code:
library("rvest")
url <- "https://statusinvest.com.br/fundos-imobiliarios/rbrp11"
url %>% read_html %>%
html_nodes("tbody") %>%
.[1] %>%
html_table(fill=TRUE)
Opening the website's source code, I can see all the records on line 1377, in the following format:
<input id="results" name="results" type="hidden" value="[{"y":0,"m":0,"d":0,"ad":null,"ed":"05/08/2022","pd":"12/08/2022","et":"Rendimento","etd":"Rendimento","v":0.450000000000000000,"ov":null,"sv":"0,45000000","sov":"-","adj":false}, (.......)
Thanks