473,487 Members | 2,674 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Retrieving and saving images from internet address

Hi all :)

I got this address:

http://www.infomedia.it/immagini/riv...s/cp/cp137.jpg

and I would like to download that image and save it to a local file.
How do you do that in Python?

Jul 25 '05 #1
3 1451
"rock69" <rr****@edmaster.it> writes:
http://www.infomedia.it/immagini/riv...s/cp/cp137.jpg

and I would like to download that image and save it to a local file.
How do you do that in Python?


See the docs for the urllib module.
Jul 25 '05 #2
rock69 wrote:
Hi all :)

I got this address:

http://www.infomedia.it/immagini/riv...s/cp/cp137.jpg

and I would like to download that image and save it to a local file.
How do you do that in Python?

Use urllib2:

http://docs.python.org/lib/module-urllib2.html
http://docs.python.org/lib/urllib2-examples.html

HTH,
Wolfram
Jul 25 '05 #3
rock69 wrote:
Hi all :)

I got this address:

http://www.infomedia.it/immagini/riv...s/cp/cp137.jpg

and I would like to download that image and save it to a local file.
How do you do that in Python?


I'd use urllib.urlretrieve, "Copy a network object denoted by a URL to a
local file, if necessary."

--
dOb
Jul 25 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1717
by: Clay Black | last post by:
I need to find a way to save an HTML page to the IIS server. What I need is to have a button that once it is clicked the current page being displayed is saved to a location on the local IIS...
16
1732
by: Fred | last post by:
hi, is there some way to prevent(at least for not so advanced users) image saving on local disk; currently i use javascript which handles the right mouse button click, but all it takes is to...
3
2445
by: Navodit | last post by:
Hi I have a very basic question regd retrieving information from website using a scripting language: Basically I am working on the development of a database where a user enters an address...
5
1481
by: royend | last post by:
Is it possible to hide images from the internet, and only have a image available for users that are logged into the intranet? I am hoping to avoid a database-solution as the number of images will...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7137
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7181
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4565
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
600
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
267
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.