aspose 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
Register / Login
JavaRanch » Java Forums » Languages » Jython/Python
Reply 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: 1103
    
    7

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


ex-Oracle bloke
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4422
    
    2

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: 1103
    
    7

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

Joined: Mar 01, 2009
Posts: 1103
    
    7

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: jrebel
 
subject: save resouce from url to local system using python
 
Similar Threads
File transfer to another IP using JSP
Is this policy file correct?
hyperlinks without URL
Run a single instance of application at all the times
Save File on Client Machine