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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lightstar
    New Member
    • Jan 2014
    • 1

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

    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:
    Code:
    download = urllib.urlopen("ftp://server/timeover.wav","wb")
    downloadR = download.read()
    downloadC = open("timeover.wav", "w")
    downloadC.write(downloadR)
    download.close()
    downloadC.close()
    (sry when the code is confusing :/ )

    Would be great when i get some Answers :)
    Last edited by bvdet; Jan 29 '14, 01:45 PM. Reason: Please use code tags [code]....[/code] when posting code.
Working...