Nơi chia sẽ kiến thức về CNTT
thủ thuật Blogger, thủ thuật AutoIT
Imacross, VBA cho Excel

18 thg 7, 2013

Macros 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}}
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.
Theo imacroscriptfree4you
Share this post
  • Share to Facebook
  • Share to Twitter
  • Share to Google+
  • Share to Stumble Upon
  • Share to Evernote
  • Share to Blogger
  • Share to Email
  • Share to Yahoo Messenger
  • More...

0 nhận xét

:) :-) :)) =)) :( :-( :(( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ :-$ (b) (f) x-) (k) (h) (c) cheer

 
© 2016 Blog kiến thức
Designed by blgkienthuc.blogspot.com Cooperated with blgkienthuc.blogspot.com/
Released under Creative Commons
Posts RSSComments RSS
Back to top