scroll_down_and_load | R Documentation |
Scroll to dynamically load more of the webpage
scroll_down_and_load(remDr = remDr) scroll_to_top(remDr = remDr) scroll_down_page_perc(remDr = remDr, perc = seq(0, 1, 0.005)) scroll_up_page_perc(remDr = remDr, perc = seq(0, 1, 0.0025)) click_show_more(remDr = remDr)
remDr |
Remote client driver |
perc |
Incrementally scroll up the page |
A character string
## Not run: # Initiate server remDr <- RSelenium::rsDriver(port = netstat::free_port(), browser = "firefox", verbose = FALSE)$client # Navigate to webpage & scroll down incrementally url <- "https://www.ocado.com/browse" remDr$navigate(url) scroll_down_page_perc(remDr = remDr, perc = seq(0, 1, .25)) # Scroll to the top of the webpage scroll_to_top(remDr = remDr) # Close the server remDr$close() gc(remDr) rm(remDr) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.