wx.lib.imagebrowser.ImageDialog dealing with URL addresses?

Do you think it’s doable I use the ImageDialog class for displaying images that reside on the Internet and not locally on my hard drive?

I webscrape a bunch of src HTML tags from a user-given website and I want to display those images to the user that correspond to the src’s URL address.

Which “thing” in wxPython should I use for this?

Not wxPython. Python

…look into urllib, urllib2, temp folders and/or files, decoding your browsers image cache and using that knowledge to your advantage, threading, etc…

…then look into loading them(bitmap, image, dc, etc) with the ImageDialog or another widget you prefer. I would personally go virtual loading of images in this respect with a generator/parser.

Downloading times and memory might be an issue depending on how you flavor your cookie and exactly what flavor you are targeting.
That would be my first approach if not wanting to make a unusually abnormal mess of temporary things, which clutter up HHD anyway.

···

On Friday, April 18, 2014 6:27:46 PM UTC-6, Boštjan Mejak wrote:

Do you think it’s doable I use the ImageDialog class for displaying images that reside on the Internet and not locally on my hard drive?

I webscrape a bunch of src HTML tags from a user-given website and I want to display those images to the user that correspond to the src’s URL address.

Which “thing” in wxPython should I use for this?

The idea you present seems very complex. Is there no simpler way of doing this?

Maybe the ImageDialog class needs to be upgraded to accept an argument set_url and be able to display the images that reside on that given URL address. Do you think that’s feasible?

You could always look as sub-classing ImageBrowser to use a then you can mount a url as a file system and everything should be
shiny - slow but shiny.
Since ImageBrowser if pure python you can look at the source and you
should not have to override too much.
Gedget/Steve

···

On 19/04/14 08:00, Boštjan Mejak wrote:

      The idea you present seems very complex. Is

there no simpler way of doing this?

      Maybe the ImageDialog class needs to be

upgraded to accept an argument set_url and be able to display
the images that reside on that given URL address. Do you think
that’s feasible?

  You received this message because you are subscribed to the Google

Groups “wxPython-users” group.

  To unsubscribe from this group and stop receiving emails from it,

send an email to wxpython-users+unsubscribe@googlegroups.com.

  For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

pyfilesystem

It is surely feasible.

One might, however, consider this a violation of the
Separation of Concerns principle.

Karsten

···

On Sat, Apr 19, 2014 at 09:00:13AM +0200, Boštjan Mejak wrote:

Maybe the ImageDialog class needs to be upgraded to accept an argument
set_url and be able to display the images that reside on that given URL
address. Do you think that's feasible?

--
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346