Page 1 of 1

Why EXtract data CSV Image (HREF) , show #EAN# ?

Posted: Sun Jan 07, 2018 9:40 pm
by zainalarivin
Dear Forum
Plase Advise :
we used (imacro 8.9.7, office xl 2007, firefox 47. 32 bit)

Why extract Image png data CSV, not result HREF but CODE #EAN#?
Plase help me.


VERSION BUILD=8970419 RECORDER=FX
TAB T=1
SET !ERRORIGNORE YES
SET !EXTRACT_TEST_POPUP NO

'open url https://www.tokopedia.com/futoy777
EVENT TYPE=CLICK SELECTOR="#showcase-container>DIV>DIV:nth-of-type({{!LOOP}})>A>DIV>DIV" BUTTON=0
SET !TIMEOUT 6
TAG POS=1 TYPE=IMG ATTR=SRC:https://ecs*.tokopedia.net/*/product/*.jpg
TAG POS=1 TYPE=IMG ATTR=SRC:https://ecs*.tokopedia.net/*/product/*.jpg EXTRACT=HREF
TAG POS=1 TYPE=IMG ATTR=SRC:https://ecs*.tokopedia.net/newimg/*.jpg
TAG POS=1 TYPE=IMG ATTR=SRC:https://ecs*.tokopedia.net/newimg/*.jpg EXTRACT=HREF
TAG POS=1 TYPE=IMG ATTR=SRC:https://ecs*.tokopedia.net/*/product-*/*.jpg
TAG POS=1 TYPE=IMG ATTR=SRC:https://ecs*.tokopedia.net/*/product-*/*.jpg EXTRACT=HREF

SAVEAS TYPE=EXTRACT FOLDER=D:\BELAJAR<SP>IMACROS\ FILE=ambilfoto.csv
WAIT SECONDS=10

Best Regard
Zainal Arivin

Re: Why EXtract data CSV Image (HREF) , show #EAN# ?

Posted: Mon Jan 08, 2018 12:44 am
by chivracq
zainalarivin wrote:Dear Forum
Plase Advise :
we used
Code: Select all
(imacro 8.9.7, office xl 2007, firefox 47. 32 bit)


Why extract Image png data CSV, not result HREF but CODE #EAN#?
Plase help me.

Code: Select all
VERSION BUILD=8970419 RECORDER=FX
TAB T=1
SET !ERRORIGNORE YES
SET !EXTRACT_TEST_POPUP NO

'open url https://www.tokopedia.com/futoy777
EVENT TYPE=CLICK SELECTOR="#showcase-container>DIV>DIV:nth-of-type({{!LOOP}})>A>DIV>DIV" BUTTON=0
SET !TIMEOUT 6
TAG POS=1 TYPE=IMG ATTR=SRC:https://ecs*.tokopedia.net/*/product/*.jpg
TAG POS=1 TYPE=IMG ATTR=SRC:https://ecs*.tokopedia.net/*/product/*.jpg EXTRACT=HREF
TAG POS=1 TYPE=IMG ATTR=SRC:https://ecs*.tokopedia.net/newimg/*.jpg
TAG POS=1 TYPE=IMG ATTR=SRC:https://ecs*.tokopedia.net/newimg/*.jpg EXTRACT=HREF
TAG POS=1 TYPE=IMG ATTR=SRC:https://ecs*.tokopedia.net/*/product-*/*.jpg
TAG POS=1 TYPE=IMG ATTR=SRC:https://ecs*.tokopedia.net/*/product-*/*.jpg EXTRACT=HREF
 
SAVEAS TYPE=EXTRACT FOLDER=D:\BELAJAR<SP>IMACROS\ FILE=ambilfoto.csv
WAIT SECONDS=10


Best Regard
Zainal Arivin

I had a look at your Script and at this Site, the Images like you've tried to tag them do simply not get found...
I'm not completely sure what you are trying to do exactly, as I only see '.png' Images on that Site/Page (at least for the "Wonder Woman" Costume), and the URL for each Image contains a "/product-1/", but try this one for the Extraction part...:
Code: Select all
VERSION BUILD=8970419 RECORDER=FX
TAB T=1
'URL GOTO=https://www.tokopedia.com/futoy777/kostum-wonder-woman-baju-anak-cewe-perempuan-cosplay-ulang-tahun-ultah?trkid=f=Ca0000L000P0W0S0Sh00Co0Po0Fr0Cb0_src=shop-product_page=1_ob=11_q=_catid=152_po=1

TAG POS=1 TYPE=IMG ATTR=SRC:https://ecs*.tokopedia.net/*/product*/*.*
TAG POS=1 TYPE=IMG ATTR=SRC:https://ecs*.tokopedia.net/*/product*/*.* EXTRACT=HREF
TAG POS=1 TYPE=IMG ATTR=SRC:https://ecs*.tokopedia.net/*/product*/*.*
TAG POS=1 TYPE=IMG ATTR=SRC:https://ecs*.tokopedia.net/*/product*/*.* EXTRACT=HREF
TAG POS=1 TYPE=IMG ATTR=SRC:https://ecs*.tokopedia.net/*/product*/*.*
TAG POS=1 TYPE=IMG ATTR=SRC:https://ecs*.tokopedia.net/*/product*/*.* EXTRACT=HREF
 
PROMPT {{!EXTRACT}}
(Tested on iMacros for FF v8.9.7, FF v55.0.3, Win10_x64.)