File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Jython/Python and the fly likes save resouce from url to local system using python Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Languages » Jython/Python
Bookmark "save resouce from url to local system using python" Watch "save resouce from url to local system using python" New topic
Author

save resouce from url to local system using python

prasad ap
Greenhorn

Joined: Dec 10, 2012
Posts: 5

Hi, i am completely new for python, i need one program which access the url and save the particular file to local system. the url like url=http://www.tizag.com/pics/example.swf. I want to save that shock wave file to local drive using python.
Not only swf file, pdf or ppt files also ok...

please help me...

Prasad
chris webster
Bartender

Joined: Mar 01, 2009
Posts: 1871
    
  16

Look at the Python 3 urllib module, which provides various functions to allow you to read stuff via URLs.


No more Blub for me, thank you, Vicar.
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4659
    
    5

Chris' suggestion will work, but have you considered using wget or curl? They do what you want, are well documented and tested. No need to reinvent the wheel.
chris webster
Bartender

Joined: Mar 01, 2009
Posts: 1871
    
  16

prasad ap,
Your post was moved to a new topic. See below.
chris webster
Bartender

Joined: Mar 01, 2009
Posts: 1871
    
  16

Now we're talking about converting between file formats, I don't think this is really a Python question any more, so I thought you might get more help in a more general forum (General Computing).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: save resouce from url to local system using python