Skip to content

Tag: amazon-ec2

scrape ASIN from amazon URL using javascript

Assuming I have an Amazon product URL like so How could I scrape just the ASIN using javascript? Thanks! Answer Amazon’s detail pages can have several forms, so to be thorough you should check for them all. These are all equivalent: They always look like either this or this: This should do it: