PowerShell script to create a HTML list of books, only by providing their ISBN codes.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
.gitignore
Create-BookList.ps1
Get-BookInfo.ps1
Invoke-AmazonApi.ps1
README.md
Run-Example.ps1
aws.config.ps1.template

README.md

AWSbooklist

This project contains a MS PowerShell script for gathering information about a list of books by their ISBN from amazon and creating a HTML fragment for a book list.

It is using the Amazon Product Advertising API to obtain the required information.

Preconditions

To use the API you must have a AWS account with your AWS Access Key and the corresponding AWS Private Key. Additionally to use the product advertising API you need to register your AWS account at the Amazon Affiliate Program to get an Associate ID.

These three tokens need to be present in the aws.config.ps1. You can find a template for the config file in aws.config.ps1.template. Just rename it and fill in your credentials.

Usage

Setup a list with ISBN codes of books you want to list. Write these codes into a plain text file, one code per line.

Call Create-BookList.ps1 my-book-list.txt and the result is saved into my-book-list.html

  • You can specify the target file to: Create-BookList.ps1 my-book-list.txt result.htm
  • You can omit the included default CSS styles: Create-BookList.ps1 my-book-list.txt -noStyles
  • You can embed the result fragment in a simple HTML page: Create-BookList.ps1 my-book-list.txt -noFragment