Scrape Amazon Titles and Prices Using iMacros

This script will scrape product titles and prices from Amazon. This script is great for researching competitors and tracking Amazon rankings. To use this file, search Amazon to bring up a list of products. Run the script with the number of products you’d like to scrap in the Max field on iMacros.

There’s one thing to note about this script. This script will save the list of products to a file named amazon.csv on your desktop. In the script you must change the desktop URL to add your own username. This script won’t work unless you have the correct path to your desktop. Any spaces in the path should be replaced with <SP>.

SCRIPT:

SET !EXTRACT_TEST_POPUP NO
TAG POS={{!LOOP}} TYPE=H2 ATTR=CLASS:a-size-medium<SP>s-inline<SP>s-access-title<SP>a-text-normal EXTRACT=TXT
TAG POS=R1 TYPE=SPAN ATTR=CLASS:sx-price-whole EXTRACT=TXT
TAG POS=R1 TYPE=SUP ATTR=CLASS:sx-price-fractional EXTRACT=TXT
‘NOTE: You must change USERNAME below to your PC profile name. To find your username, right-click on a file on your desktop and go to Properties.
SAVEAS TYPE=EXTRACT FOLDER=C:\Users\USERNAME\Desktop FILE=amazon.csv

 

Let me know if you have any issues with a comment below or through email.

Leave a Reply

Your email address will not be published. Required fields are marked *