Downloading Images

Information related to the use of iMacros for Web Scraping, Data Mining and creating Mashups.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team
Post Reply
User avatar
Tech Support
Posts: 4948
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Downloading Images

Post by Tech Support » Thu Nov 09, 2006 8:33 am

Downloading images from a website can be done in a number of ways:

1) Use savepictureas feature by adding the CONTENT attribute to a TAG command, as described in the online user manual:

TAG POS=1 TYPE=IMG ATTR=HREF:http://www.iopus.com/ CONTENT=EVENT:SAVEPICTUREAS

2) Extract the URL of the image and display this in the browser. Use SAVEAS to save the image.

Code: Select all

VERSION BUILD=5211028
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=[i]yourwebsite[/i]
SIZE X=801 Y=624
'extract the URL of the image eg.
EXTRACT POS=6 TYPE=HREF ATTR=<IMG<SP>alt=*
URL GOTO={{!EXTRACT}}
SAVEAS TYPE=CPL FOLDER=* FILE=*
Daniel Kerr
iOpus Support
TaeWoo
Posts: 2
Joined: Thu Jan 10, 2008 1:46 am

Dynamic HTML image

Post by TaeWoo » Thu Jan 10, 2008 1:50 am

Hi Tech Support.
What if the image is written to the page dynamically by JavaScript? HOw do we do that?
Post Reply