Attempting to scrape data from Argentina Covid website
Trying to use Rvest but can't seem to identify how to grab the area of interest.
I can see it but just can't seem to extract it
the data is in the right-hand table which is headed Provincia and has cases in two columns
Using Developers Tools I can see the data resides in Panel-75 but I just don't know enough about Rvest to work out how to extract it
ARG_Regions <- read_html("Información epidemiológica | Argentina.gob.ar")
x <- '//*[@id="panel-75"]/div/div/div[1]/div/div[2]/div/plugin-component/panel-plugin-table/grafana-panel/ng-transclude/div[1]/div[2]/table'
ARG_Regions %>% html_nodes(xpath = x) %>% html_text()
HTML Code Below
Any suggestions would be much appreciated
Thanks
Mike
|
Provincia
|
Confirmados del día
|
Totales
|
|
Provincia Buenos Aires |
Confirmados del día 6302 |
Totales 1855743 |
| CABA |
1315 |
466575 |
| Catamarca |
316 |
34867 |
| Chaco |
586 |
78234 |
| Chubut |
269 |
71296 |
| Corrientes |
675 |
67479 |
| Córdoba |
2356 |
415753 |
| Entre Ríos |
885 |
112065 |
| Formosa |
434 |
46465 |
| Jujuy |
290 |
36414 |
| La Pampa |
251 |
53599 |
| La Rioja |
168 |
22574 |
| Mendoza |
800 |
141379 |
| Misiones |
143 |
25971 |
| Neuquén |
243 |
101886 |
| Río Negro |
236 |
84807 |
| Salta |
563 |
62578 |
| San Juan |
720 |
51831 |
| San Luis |
487 |
66575 |
| Santa Cruz |
172 |
55799 |
| Santa Fe |
1736 |
409650 |
| Santiago del Estero |
605 |
60814 |
| Tierra del Fuego |
90 |
29909 |
| Tucumán |
1246 |
160176 |
No data to show