the icon doesnt display in firefox
as <img src="test.ico">
Tim Lesher wrote:
> On 8/15/06, a <[EMAIL PROTECTED]> wrote:
> >
> > /favicon.ico
> >
> > i want to get the favicon.ico from the URL when a blog is added to the
> > aggregator
>
> For retrieving the icon, you can use the urlopen() call from Python's
> built-in urllib library.
>
> To do it right, you need to first try to pull the URL from the blog's
> HTML, and if it doesn't exist there (in a <link> tag), fall back to
> the domain name + "/favicon.ico".  I suggest BeautifulSoup for parsing
> the HTML.
>
> > and then display the image,
> > this is the usage scenario
>
> You shouldn't have to convert the image.  Even though the .ico format
> is a Windows standard, I think all browsers nowadays can handle one in
> an <img> element.
> -- 
> Tim Lesher <[EMAIL PROTECTED]>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to