'Webscrapping using rvest
Let's consider the page following:
I want to extract to R all the matches that were played. To do so I wrote a code:
library(rvest)
library(dplyr)
url <- read_html("https://www.whoscored.com/Regions/252/Tournaments/2/Seasons/8618/Stages/19793/Fixtures/England-Premier-League-2021-2022")
names <- url %>% html_nodes(".divtable-row") %>% html_text()
names
where ".divtable-row" was extracted with selector gadget. The problem is that output of this code is equal to character(0). It somehow does not see the area that I'm marking. Do you know why it happens?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

