provoquestosito wrote:Hi
I tried from longtime to extract url from an image but it extract only url image (img src), I need the link in the image (a href)
I tried any type of extraction without success because when i use EXTRACTION
Code: Select all
TAG POS=2 TYPE=IMG ATTR=WIDTH:33&&HEIGHT:33&&SRC:../images/yes_33.png EXTRACT=HREF
Extract only the url of image not the link.
Can you help me please with a simple example
URL
HTML CODE (* because some values can be changed)
Code: Select all
<td class="vg_table_row_1" style="text-align: center;"><a href="do_openvpn.aspx?fqdn=*&ip=*&tcp=*&udp=*&sid=*&hid=*"><img src="../images/yes_33.png" height="33" width="33"><br><b>OpenVPN<br>Config file</b></a><br>TCP: *<br>UDP: *</td>
IMAGE
I use firefox 37.0.1 and imacros 8.9.2
Thanks for help
provoquestosito wrote:It's possible to extract the url from an image?
Otherwise it's possibile to extract the url from the html source ?
When i record the macro the url do not record in macro code.
I need to extract the url "do_openvpn.aspx" in the code of page
Help me please i added all code.
Thanks
"Help me please i added all code." => Oh yep indeed, that was not the case in your original Post when you opened this Thread and I first had a look at it, because I only answer Threads when FCI is mentioned...
For your Pb, I think you simply need to use 'EXTRACT=HTM' instead of 'EXTRACT=HREF'... then use 'EVAL()' with a few 'split()' to isolate the URL...
EDIT: OK, not correct, I see the Pb, I'm looking into it...:
Code: Select all
VERSION BUILD=8820413 RECORDER=FX
TAB T=1
'URL GOTO=http://www.vpngate.net/en/
TAG POS=2 TYPE=IMG ATTR=SRC:http://www.vpngate.net/images/yes_33.png EXTRACT=HREF
'=> Extracted:
' "http://www.vpngate.net/images/yes_33.png"
TAG POS=2 TYPE=IMG ATTR=SRC:http://www.vpngate.net/images/yes_33.png EXTRACT=HTM
'=> Extracted:
' "<img style="outline: 1px solid blue;" src="../images/yes_33.png" height="33" width="33">"
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...