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