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
- python
- port
- javascript
- PyQt5
- PER
- urllib
- MS-SQL
- mssql
- 맛집
- 다이어트
- Unity
- 리눅스
- IOS
- 함수
- GIT
- pandas
- ubuntu
- Linux
- flutter
- PyQt
- 라즈베리파이
- 날짜
- ASP
- Excel
- MySQL
- tensorflow
- swift
- sqlite
- 유니티
- node.js
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