Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import ftplib
- ftp = ftplib.FTP('ssd.jpl.nasa.gov')
- ftp.login()
- ftp.cwd('pub/eph/planets/ascii/de431')
- files = ftp.nlst()
- for f in files:
- with open("E:/de431/" + f, 'wb') as h:
- ftp.retrbinary("RETR " + f, h.write)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement