Notice
														
												
											
												
												
													Recent Posts
													
											
												
												
													Recent Comments
													
											
												
												
													Link
													
											
									| 일 | 월 | 화 | 수 | 목 | 금 | 토 | 
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 | 
| 12 | 13 | 14 | 15 | 16 | 17 | 18 | 
| 19 | 20 | 21 | 22 | 23 | 24 | 25 | 
| 26 | 27 | 28 | 29 | 30 | 31 | 
													Tags
													
											
												
												- node.js
- PyQt5
- 함수
- 유니티
- swift
- 다이어트
- python
- PER
- javascript
- MS-SQL
- Unity
- Linux
- tensorflow
- 라즈베리파이
- GIT
- mssql
- IOS
- pandas
- urllib
- sqlite
- PyQt
- ASP
- flutter
- port
- 리눅스
- MySQL
- ubuntu
- 날짜
- Excel
- 맛집
													Archives
													
											
											
											
											아미(아름다운미소)
Python: Download from FTP server using ftplib 본문
Python: ftplib를 이용해 FTP server에서 다운로드받기
    
import ftplib
path = 'pub/path/'
filename = 'sample.txt'
ftp = ftplib.FTP("Server IP") 
ftp.login("UserName", "Password") 
ftp.cwd(path)
ftp.retrbinary("RETR " + filename, open(filename, 'wb').write)
ftp.quit()
'랭귀지 > python' 카테고리의 다른 글
| Python 파일, 디렉토리 존재 여부 확인 (0) | 2018.08.14 | 
|---|---|
| python 에서 한글폴더 읽기 (0) | 2018.08.13 | 
| [ftplib] python ftp file upload (0) | 2018.08.10 | 
| pymssql CRUD 예제 (0) | 2018.08.09 | 
| 이미지 파일 확인하기 (0) | 2018.06.07 | 
			  Comments