Extract Downloaded File location is failed

Discussions and Tech Support related to website data extraction, screen scraping and data mining using iMacros.

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.

Extract Downloaded File location is failed

by imacrosid on Sun Dec 25, 2016 9:32 pm

Hello, i have created code to save pic/image and extract the file download location to csv file.

save image is work , but extract file downloaded location to csv file is failed , result is "__undefined__" in csv file.

this is my code
Code: Select all
VERSION BUILD=8970419 RECORDER=FX
SET !EXTRACT_TEST_POPUP NO

TAB T=1
URL GOTO=https://www.tokopedia.com/sparepart-tv-69/lampu-led-3-volt-10-kancing-backlight-3-volt-10-kancing-cembung-2
ONDOWNLOAD FOLDER=C:\Users\Yenyen<SP>Nainggolan\Pictures FILE=+_{{!NOW:yyyymmdd_hhnnss}} WAIT=YES
TAG POS=1 TYPE=IMG ATTR=SRC:https://ecs7.tokopedia.net/img/cache/300/product-1/*.jpg CONTENT=EVENT:SAVEPICTUREAS

ADD !EXTRACT {{!DOWNLOADED_FILE_NAME}}
SAVEAS TYPE=EXTRACT FOLDER=* FILE=link<SP>gambar.csv


can some one help me ? :cry:
imacrosid
 
Posts: 17
Joined: Sun Feb 07, 2016 3:36 am

Re: Extract Downloaded File location is failed

by chivracq on Sun Dec 25, 2016 11:44 pm

imacrosid wrote:Hello, i have created code to save pic/image and extract the file download location to csv file.

save image is work , but extract file downloaded location to csv file is failed , result is "__undefined__" in csv file.

this is my code
Code: Select all
VERSION BUILD=8970419 RECORDER=FX
SET !EXTRACT_TEST_POPUP NO

TAB T=1
URL GOTO=https://www.tokopedia.com/sparepart-tv-69/lampu-led-3-volt-10-kancing-backlight-3-volt-10-kancing-cembung-2
ONDOWNLOAD FOLDER=C:\Users\Yenyen<SP>Nainggolan\Pictures FILE=+_{{!NOW:yyyymmdd_hhnnss}} WAIT=YES
TAG POS=1 TYPE=IMG ATTR=SRC:https://ecs7.tokopedia.net/img/cache/300/product-1/*.jpg CONTENT=EVENT:SAVEPICTUREAS

ADD !EXTRACT {{!DOWNLOADED_FILE_NAME}}
SAVEAS TYPE=EXTRACT FOLDER=* FILE=link<SP>gambar.csv


can some one help me ? :cry:

Yep, (probably) normal in your (probable?) Case... :(
- (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: 6381
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)

Re: Extract Downloaded File location is failed

by imacrosid on Mon Dec 26, 2016 2:21 am

chivracq wrote:
imacrosid wrote:Hello, i have created code to save pic/image and extract the file download location to csv file.

save image is work , but extract file downloaded location to csv file is failed , result is "__undefined__" in csv file.

this is my code
Code: Select all
VERSION BUILD=8970419 RECORDER=FX
SET !EXTRACT_TEST_POPUP NO

TAB T=1
URL GOTO=https://www.tokopedia.com/sparepart-tv-69/lampu-led-3-volt-10-kancing-backlight-3-volt-10-kancing-cembung-2
ONDOWNLOAD FOLDER=C:\Users\Yenyen<SP>Nainggolan\Pictures FILE=+_{{!NOW:yyyymmdd_hhnnss}} WAIT=YES
TAG POS=1 TYPE=IMG ATTR=SRC:https://ecs7.tokopedia.net/img/cache/300/product-1/*.jpg CONTENT=EVENT:SAVEPICTUREAS

ADD !EXTRACT {{!DOWNLOADED_FILE_NAME}}
SAVEAS TYPE=EXTRACT FOLDER=* FILE=link<SP>gambar.csv


can some one help me ? :cry:

Yep, (probably) normal in your (probable?) Case... :(


can you help me to solved the problem ?
imacrosid
 
Posts: 17
Joined: Sun Feb 07, 2016 3:36 am

Re: Extract Downloaded File location is failed

by pratiksha27.jain on Thu Dec 29, 2016 2:04 am

Hi,

If you are facing problem saving the extracted data in csv file
probably the problem is with your syntax



what you tried :

SAVEAS TYPE=EXTRACT FOLDER=* FILE=link<SP>gambar.csv

what it should be :

SAVEAS TYPE=EXTRACT FOLDER=<path of the csv> FILE=link gambar.csv

please specify the path of the folder as per below example

example :
SAVEAS TYPE=EXTRACT FOLDER=C:\Users\pjain74\Desktop\macro FILE=pollers1_data.csv
pratiksha27.jain
 
Posts: 19
Joined: Wed Dec 28, 2016 12:24 am

Re: Extract Downloaded File location is failed

by chivracq on Fri Dec 30, 2016 6:55 pm

pratiksha27.jain wrote:Hi,

If you are facing problem saving the extracted data in csv file
probably the problem is with your syntax

what you tried :
Code: Select all
SAVEAS TYPE=EXTRACT FOLDER=* FILE=link<SP>gambar.csv


what it should be :
Code: Select all
SAVEAS TYPE=EXTRACT FOLDER=<path of the csv> FILE=link gambar.csv


please specify the path of the folder as per below example

example :
Code: Select all
SAVEAS TYPE=EXTRACT FOLDER=C:\Users\pjain74\Desktop\macro FILE=pollers1_data.csv

Nope..., won't make a difference and that's not the Explanation/Solution to OP's Pb...

The Explanation is in the Wiki, the/a Solution will be a bit more complicated...
- (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: 6381
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)

Re: Extract Downloaded File location is failed

by imacrosid on Mon Jan 02, 2017 7:58 pm

pratiksha27.jain wrote:Hi,

If you are facing problem saving the extracted data in csv file
probably the problem is with your syntax



what you tried :

SAVEAS TYPE=EXTRACT FOLDER=* FILE=link<SP>gambar.csv

what it should be :

SAVEAS TYPE=EXTRACT FOLDER=<path of the csv> FILE=link gambar.csv

please specify the path of the folder as per below example

example :
SAVEAS TYPE=EXTRACT FOLDER=C:\Users\pjain74\Desktop\macro FILE=pollers1_data.csv


No no , you don't understand my problem
I download file , but i want extract location and name of file downloaded
imacrosid
 
Posts: 17
Joined: Sun Feb 07, 2016 3:36 am

Re: Extract Downloaded File location is failed

by chivracq on Mon Jan 02, 2017 10:02 pm

imacrosid wrote:No no , you don't understand my problem
I download file , but i want extract location and name of file downloaded

Ah-ah...!, maybe you might start realizing how frustrating it is when People don't understand your Posts/Msg's/Questions/Answers, welcome to the "Club" I would say... 8)
- (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: 6381
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)


Return to Data Extraction and Web Screen Scraping

Who is online

Users browsing this forum: No registered users and 3 guests

-->