I'm trying to scrape the WHOLE 'In more languages' table on Wikidata pages, e.g. https://www.wikidata.org/wiki/Q3044
I have tried 2 approaches in R:
library(rvest)
url <- "https://www.wikidata.org/wiki/Q3044"
pg <- url %>% read_html
pg <- pg %>%
html_nodes(".wikibase-entitytermsforlanguagelistview") %>%
html_table()
table <- pg[[1]]
But this return only the English part (1 row).
I have also tried:
library(tidywikidatar)
tw_get_label(id = c("Q3044"),language = "nl")
But this returns only one label. However, I would like all the 'Also known as' category on Wikidata.
Any help would be much appreciated!
