get the icon found in address bar in browser

Thomas McGrath III 3mcgrath at comcast.net
Mon Sep 29 12:54:29 EDT 2008


Clever versus time versus need ???

If you go to www.go2web20.com they have a flash app that 'gets'  
website graphics and I'm not sure if they are even the original  
favicons or where they got them from. But I wouldn't think they got  
them all manually?? Anyway, I would like to have a bookmark list in a  
text field with imagedata of anything that represents the website and  
was thinking that revBrowser snapshot was too big for a text field and  
I don't know where or how go2web20 got theirs so it seemed the favicon  
was the best choice but....

Anyway, screenscraping seems esay enough but I wonder if getting the  
binary is possible. On the Mac Preview will open an .ico file but not  
allow a binary from it. Screen capture seems possible or some third  
party app but now it is getting complicated.

Ideas????

Tom McGrath

On Sep 29, 2008, at 11:45 AM, Stephen Barncard wrote:

> Some clever revDude could hack out a conversion -- .ico's are only  
> 16x16  (uncompressed?)
>
> 1. screenscrape the html of the page for the first .ico file
> 2. get the file as binary....
> 3. figure out where the headers, jump tables are, the standards for  
> ico are out there I'm sure
> 4. convert to imagedata
> ....
>
> so few pixels that it could be done easily in rev...
>
>
>> At 10:54 AM -0400 9/29/08, Thomas McGrath III wrote:
>>> Does anyone know how to capture/get the icon found before the http  
>>> text in the address bar in most web browsers? I want to get this  
>>> via script in Revolution in a text field.
>>
>> I believe that it's always favicon.ico. So for example the one for  
>> runrev would be:
>>
>> http://www.runrev.com/favicon.ico
>>
>> if they had one. The one for Adobe is:
>>
> -- 
>
>
> stephen barncard
> s a n  f r a n c i s c o
> - - -  - - - - - - - - -
>
>




More information about the use-livecode mailing list