I would like to get all the news title and short description of this webpage but it returns "character (0)".
Here is what I did:
# News of WB link_wb <- "http://www.worldbank.org/en/news/all?displayconttype_exact=Speeches+and+Transcripts&lang_exact=English&qterm=" wb_speechs <- read_html(link_wb) # get the news title wb_title <- wb_speechs %>% html_nodes(xpath = "/html/body/div/div/div/customsearch/main/div/div/div/div/news/div/div/div/div/div/div/ul/li/div/h4") %>% html_text() wb_title
I've tried with some class, xpath and so on, but get no results. Please advice! Thank you a lot!