By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,421 Members | 1,253 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,421 IT Pros & Developers. It's quick & easy.

Downloading a .wav from a ftp Server with urllib.urlopen

P: 1
This is what i tried but i says: TypeError: open_ftp() takes exactly 2 arguments (3 given)

I know that ',"wb"' causes that Error but how can i download a .wav and is it actually possible?

This is my Code:
Expand|Select|Wrap|Line Numbers
  1. download = urllib.urlopen("ftp://server/timeover.wav","wb")
  2. downloadR =
  3. downloadC = open("timeover.wav", "w")
  4. downloadC.write(downloadR)
  5. download.close()
  6. downloadC.close()
(sry when the code is confusing :/ )

Would be great when i get some Answers :)
Jan 29 '14 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.