I was using rvest for scrapping the details of the product (Names, Price, and Availability) on amazon's product search results. From that, I can fetch the webpage with read_html(), but I am not able to fetch the details of the product (Names, Price, and Availability).
Here is the reproducible code:
library(rvest)
library(xml2)
url <- "https://www.amazon.in/s?k=Smartphone&rh=n:1389401031&ref=nb_sb_noss"
page <- read_html(url)
data <- page%>%
html_node("span.a-size-medium a-color-base a-text-normal") %>%
html_text()
print(data)