Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Getting the location of a favicon from link

$
0
0
trying to use this udf
http://www.autoitscript.com/forum/topic/124330-htmlau3-v101/page__hl__%2Bfavicon

but the _HTML_Get() function is almost always returning an empty string. Especially if the link is in a sub domain(?)

I'm horrible at regexp so I'm not sure how it's searching to fix the problem. Or maybe there is a better way to get the full path to a favicon?
[ autoit ]      
#include <_html.au3> Local $url[3] $url[0] = "[url="http://www.autoitscript.com/autoit3/index.shtml"]http://www.autoitscript.com/autoit3/index.shtml[/url]" $url[1] = "[url="http://www.imdb.com/"]http://www.imdb.com/[/url]" $url[2] = "[url="http://www.homedepot.com/Doors-Windows-Doors-Entry-Doors-Screen-Doors/h_d1/N-5yc1vZbaed/h_d2/Navigation?catalogId=10053&Nu=P_PARENT_ID&langId=-1&storeId=10051&currentPLP=true&omni=c_Screen"]http://www.homedepot.com/Doors-Windows-Doors-Entry-Doors-Screen-Doors/h_d1/N-5yc1vZbaed/h_d2/Navigation?catalogId=10053&Nu=P_PARENT_ID&langId=-1&storeId=10051&currentPLP=true&omni=c_Screen[/url] Doors&searchNav=true" For $i = 0 to UBound($url)-1  $sHTML = _HTML_GetSource($url[$i])  $sIconURL = _HTML_Get($sHTML, "link", "href", "image/x-icon", "type")  MsgBox(0,$url[$i],$sIconURL) Next

Attached Files


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>