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

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

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

by zainalarivin on Sun Jan 07, 2018 9:40 pm

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
zainalarivin
 
Posts: 1
Joined: Sun Jan 07, 2018 6:46 pm

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

by chivracq on Mon Jan 08, 2018 12:44 am

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.)
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
chivracq
 
Posts: 6945
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)


Return to General Support & Discussions

Who is online

Users browsing this forum: No registered users and 6 guests

-->