An efficient way to extract Amazon ASIN and ISBN from Amazon links. Supports Amazon premalinks (short URLs) and does everything once, not twice.