Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. import os
  2. import ftplib
  3.  
  4. ftp = ftplib.FTP('ssd.jpl.nasa.gov')
  5. ftp.login()
  6. ftp.cwd('pub/eph/planets/ascii/de431')
  7. files = ftp.nlst()
  8. for f in files:
  9. with open("E:/de431/" + f, 'wb') as h:
  10. ftp.retrbinary("RETR " + f, h.write)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement