Re: using IDLnetURL to get an image from a HTTP URL into IDL [message #91370 is a reply to message #91367] |
Mon, 06 July 2015 17:43  |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
On Monday, July 6, 2015 at 3:19:41 PM UTC-4, Puneeth Shankar wrote:
> Hi Helder,
> Re. "IDLnetURL" as shown in the snippet above, my concern is to get an image from a remote server using a URL. I'm half way through actually. Meaning that I can now download and store an image from only such URLs; which upon opening via a browser, one can notice that it will contain only an image(no associated text/paragraphs etc).
> Here's my requirement: I'm hoping to download only images from normal URLs that contain both text and images.Let me know your thoughts on this. I appreciate your time and patience.Thanks for replying :)
IDL is not the best tool for this. "Normal URLs" as you call them, are links to full HTML pages. HTML can be very complicated and IDL cannot parse them without difficulty.
Wget is a better option because it is able to parse static HTML pages and download all of the linked images.
Wget probably will not handle something like Google Maps because map tiles are loaded dynamically within the browser using Javascript. I personally think your best bet is to run a virtual machine or virtual display, and run a browser within that virtual environment which you remotely control. It won't be easy, but can be done by an experienced developer.
You could also hire someone to make screenshots for you. :-)
CM
|
|
|