May 6, 2012

[iMacros Script] Amazon CAT Checking macro

This product has a large set of KW. But words can not distinguish the words. All I have is how to write a simple macro to check the value of the first three categories are related to the word. The number of products available on Amazon, with the last value from the CSV.

'------------------------------Start Script --------------------------------- 
VERSION BUILD=7401110 RECORDER=FX
TAB T=1
SET !EXTRACT_TEST_POPUP NO
SET !ERRORIGNORE NO
SET !DATASOURCE Amz-KW-CAT.csv
SET !DATASOURCE_COLUMNS 1
SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}
URL GOTO=http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords={{!COL1}}
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:site-search ATTR=ID:twotabsearchtextbox EXTRACT=TXT
TAG POS=1 TYPE=SPAN ATTR=CLASS:refinementLink&&TXT:* EXTRACT=TXT
TAG POS=2 TYPE=SPAN ATTR=CLASS:refinementLink&&TXT:* EXTRACT=TXT
TAG POS=3 TYPE=SPAN ATTR=CLASS:refinementLink&&TXT:* EXTRACT=TXT
TAG POS=1 TYPE=DIV ATTR=CLASS:resultCount&&TXT:*&&ID:resultCount EXTRACT=TXT
SAVEAS TYPE=EXTRACT FOLDER=* FILE=Amz-KW-CAT-Result.csv
'------------------------------End Script --------------------------------- 

If the macro does not run out of the way it should try to check the source code of the Amazon web page again, because the new class name.

No comments:

Post a Comment

iMacros Script