Extracting the link of an image

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
cycstep
Posts: 2
Joined: Mon Jun 11, 2007 12:47 pm

Extracting the link of an image

Post by cycstep » Mon Jun 11, 2007 12:55 pm

Hi everyone,

I am new to imarco. I have a page which has 200 something images on it and I want to save them all with my prefer names. But the problem is for some reason the savepicutreas savetargetas and as well the saveitem as does not work. So I tried another method which requires me to extract the url of the image but the problem is the image itself is not a link. I am wonder if i could somehow extract that link information?
User avatar
Tech Support
Posts: 4947
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Post by Tech Support » Wed Jun 13, 2007 8:16 pm

You can do this, please see http://wiki.imacros.net/Data_Extraction for details.
User avatar
Tech Support
Posts: 4947
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Post by Tech Support » Wed Jun 13, 2007 8:17 pm

But why does savetargetas not work? Can you please post an example URL?
cycstep
Posts: 2
Joined: Mon Jun 11, 2007 12:47 pm

Post by cycstep » Thu Jun 14, 2007 1:38 pm

As for the extracting, like I said earlier the image is not a link on the page, rather it is just a image so I don't know how to extract the link or location of the image. Because if it is a link I can use the parameter EXTRACT = HREF on the tag command, but after trying it I found that it doesn't extract anything. (ie: #ENF# or something) and it is the same if I use EXTRACT = ALT too. As for why savepictureas doesn't work I really don't understand. I followed the instruction very carefully and used ONDOWNLOAD command as well as the TAG command but it just doesn't work. I wish i could post the web site but I cannot because I would get fire, so instead I can part of the html. Thanks for the help~!


<html>
<head>
<title>Site d'intÚrŕt1-Cercle1(1)</title>
<meta name="" content="">
</head>
<body background="webbg.jpg">
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="15%" valign="top" align="left"><font face="Arial">
<a href = " Projet 1 (17).htm "><img src="PROJECT32.gif" Width = "32" Height = "32" border = "0" >
<strong><big>Projet 1 (17)</big></strong></font></a></td>
<td width="100%" valign="top" rowspan=" 679 " ><table border="0" width="100%" cellspacing="4" cellpadding = "0" >
<tr><td valign="top">
<b>Site d'intÚrŕt1-Cercle1(1)</b><p></td></tr>

<tr><td valign="top"><img src=" SEIAF27BC88212_LAQEe.bmp " name = "RefImage"
width="500" ><p>
</td>
<td valign = "top">
<img src=" SEIAF27BC88212_LAQE.bmp "
width="100" alt = " Site d'intÚrŕt1-Cercle1(1) " onClick=SwapImage('SEIAF27BC88212_LAQE.bmp')>
</td></tr><tr>
</tr> </table>
</td> </tr>
<tr>
<td width="15%"><small><font face="Arial"><small>
<a href=SMPAF27BB9820F_JXWH.htm>
<img src="Sample16.gif" Width = "16" Height = "16" border = "0" >
Echantillon 1</small></font></small></td>
</a>

</tr>
.......
....




SEIAF27BC88212_LAQEe.bmp is the image I want but it will be MUCH too annoying to save it one by one.
Post Reply