search for: wb_proj

Displaying 1 result from an estimated 1 matches for "wb_proj".

2018 Jan 23
1
Scraping from different level URLs website
...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_nodes(html, ".grid_20") %>% html_text(trim = TRUE), project_url = html_nod...