I am looking to web scrape all the codes and the codes under each hierarchy as seen on the left panel from this website using R package rvest.
URL-- http://apps.who.int/classifications/icd10/browse/2016/en/
To begin with I tried this code-
url<-"http://apps.who.int/classifications/icd10/browse/2016/en/"
src<-read_html(url)
ATC<-src%>%html_node("a.ygtvlabel")%>%html_text
a.ygtvlbel is the class I see when hovering on the text in the web page.
However it just returns NA_character. I see that the html source for the page, does not directly contain these codes(Ex- parasitic diseases) but instead it probably has an href to all the contents.
How Can I go about scraping such a page. Kindly advise.