jeudi 2 juillet 2020

Extract table from web page by page

I have written a code for web scraping table from webpage. This code extracts table from page one (in url /page=0):

url <- "https://ss0.corp.com/auth/page=0"
login <- "john.johnson" (fake)
password <- "67HJL54GR" (fake)

res <- GET(url, authenticate(login, password))
content <- content(res, "text")

table <- fromJSON(content) %>%
  as.data.farme()

I want to write a code to extract rows from table page by page and then to bind them. I do that, cause table is too large and i can't extract everything at once (it will brake the system). How could i do that?




Aucun commentaire:

Enregistrer un commentaire