Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from ftplib import FTP
- ftp = FTP()
- HOST = '192.168.1.59'
- PORT = 3121
- USER = 'simple'
- PASS = 'qwerty'
- ftp.connect(HOST, PORT)
- ftp.login(USER, PASS)
- print('Connected')
- out = '/home/pi/UM10211.pdf'
- with open(out, 'wb') as f:
- ftp.retrbinary('RETR ' + 'UM10211.pdf', f.write)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement