knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
The goal of Rmazon is to help you download product information and reviews from Amazon.com easily.
You can install Rmazon from github with:
# install.packages("devtools") devtools::install_github("56north/Rmazon")
This is a basic example which shows you how to get product information:
# Get product information for 'The Art of R Programming: A Tour of Statistical Software Design' product_info <- Rmazon::get_product_info("1593273843") # Have a look at the data product_info
Lets get the same information, but from the german Amazon
# Find the appropriate domain Rmazon::domains$Germany # Then use domain to get german data product_info_de <- Rmazon::get_product_info("1593273843", domain = "de")
This is a basic example which shows you how to get reviews:
# Get reviews for 'The Art of R Programming: A Tour of Statistical Software Design' reviews <- Rmazon::get_reviews("1593273843") # Have a look at the data reviews
Lets get the same information, but from the french Amazon
# Find the appropriate domain Rmazon::domains$France # Then use domain to get german data reviews_fr <- Rmazon::get_reviews("1593273843", domain = "fr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.