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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 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: 1479
    
  11

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: 4639
    
    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: 1479
    
  11

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

Joined: Mar 01, 2009
Posts: 1479
    
  11

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