I'm trying to extract some data to create an analysis of the prices of my favorite trading game card, this is my code, but in the price, the info was extracted as NA instead the value.
Can anyone help me with this?
this is my code.
library(xml2)
library(rvest)
url<-"https://starcitygames.com/shop/singles/english/throne-of-eldraine/"
pagina_web<-read_html(url)
selectorExpansion<-"body > div.body.category-grid-view > div.container > div > h1"
Expansion_nodo<-html_node(pagina_web,selectorExpansion)
Expansion<-html_text(Expansion_nodo)
Expansion
selectorNombre1<-"#product-listing-container > section > article > table > tbody > tr:nth-child(1) > td.td-listItem.--Name.fixed > div > h4 > a"
Nombre1_nodo<-html_node(pagina_web,selectorNombre1)
Nombre1<-html_text(Nombre1_nodo)
Nombre1
selectorIdioma1<-"#product-listing-container > section > article > table > tbody > tr:nth-child(1) > td.td-listItem.--Name.fixed > div > p"
Idioma1_nodo<-html_node(pagina_web,selectorIdioma1)
Idioma<-html_text(Idioma1_nodo)
Idioma
selectorPrecio1<-"#product-listing-container > section > article > table > tbody > tr:nth-child(2) > td.td-listItem.--Quantity.fixed.qty > p"
Precio1_nodo<-html_node(pagina_web,selectorPrecio1)
Precio1<-html_text(Precio1_nodo)
Precio1