Displaying 1 result from an estimated 1 matches for "wb_link".
Did you mean:
db_link
2018 Jan 23
1
Scraping from different level URLs website
...lang=en&tab=overview> I am interested in.
In other words, my problem is to find out a way to create a dataframe including all the countries, a complete list of all projects for each country and an overview of any single project.
Yet, this is the code that I have (unsuccessfully) written:
WB_links <- "http://projects.worldbank.org/country?lang=en&page=projects"
WB_proj <- function(x) {
Sys.sleep(5)
url <- sprintf("http://projects.worldbank.org/search?lang=en&searchTerm=&countrycode_exact=%s", x)
html <- read_html(url)
tibble(title = html...