css – Scraping websites with load more button using rvest


How can one scrape pages with load more button? There are 64 pages I need to scrape, but the following code provides the very first page.

crpyto_url <- read_html("https://www.tradingview.com/markets/cryptocurrencies/prices-all/")               
cryp_table <- html_nodes(crpyto_url, css = "table")
crypt_table <- html_table(cryp_table, fill = T) %>% as.data.frame()

I do not want to use selenium nor BeautifulSoup since I want this to be done programmatically. It looks this can be handled in Python; I hope there is a way in R to do so.

enter image description here



Source link

Latest articles

Related articles

Leave a reply

Please enter your comment!
Please enter your name here