I am trying to scrap a table of mutations in the MYC gene from the COSMIC website (https://cancer.sanger.ac.uk/cosmic/gene/analysis?ln=MYC#variants). However, I get a NULL. I've also tried using the xpath and full xpath. Please advise.
Code and output reproduced below:
> library("rvest")
> library("dplyr")
> library("robotstxt")
> library("XML")
> Gene_url = "https://cancer.sanger.ac.uk/cosmic/gene/analysis?ln=MYC#variants"
> x = read_html(Gene_url)
> paths_allowed(Gene_url)
> cancer.sanger.ac.uk No encoding supplied: defaulting to UTF-8.
>
>
> [1] TRUE
> x %>% html_nodes("#DataTables_Table_0")
> {xml_nodeset (0)}