나를 위해 개발된 다운로더입니다.(selfuse)
종속성을 설치합니다.
$ pip3 설치 -r 요구사항.txt
사용량을 확인하세요.
$ python3 main.py -h usage: main.py [-h] [--src SRC] [--save SAVE] [--max MAX] [--interval INTERVAL] [--chunk CHUNK] fastDownloader v0.0.1 options: -h, --help show this help message and exit --src SRC This parameter specifies the file path where the links to be downloaded are stored. --save SAVE This parameter specifies the path for storing the downloaded files. No / at the end. --max MAX This parameter specifies the concurrency level. --interval INTERVAL This parameter specifies the interval of requests. --chunk CHUNK This parameter specifies the number of bytes to be read per download.
["url1","url2"...]
성공
$ python3 main.py --src ./test_success.json --max 3 --chunk 1024> 지금 -3557342921266950271_500 다운로드 중!> 지금 -2865197712751752189_300 다운로드 중!> -700390739090695736_600 다운로드 중 지금!> 지금 5636641034660171054_700 다운로드 중!> 지금 5773939477608183504_400 다운로드 중!> 지금 1310250945337633844_200 다운로드 중!> 모든 리소스가 성공적으로 다운로드되었습니다!다운로드됨 6 실패 0 왼쪽 0: 100%|██████████████████████████| 6/6 [00:01<00:00, 4.33it/s]# 주의 사항: 파일 이름 앞의 긴 문자열은# 파일 이름 지정의 고유성을 보장하는 데 사용되는 고유한 해시 코드입니다.
실패한
$ python3 main.py --src ./test_failed.json --max 3 --chunk 1024> 지금 -6762229335681689814_700 다운로드 중!> 지금 -55066400530373971_600 다운로드 중!> 지금 -2931830335596416142_500 다운로드 중!> 지금 2353655904693015958_300 다운로드 중!> 지금 -5222952479054798371_non-existent-url 다운로드 중!> 1개 파일을 다운로드하지 못했습니다!> "python3 main.py --src failed.json --save . --max 3 --interval 0.5 --로 다시 실행해 주세요. 큰 덩어리 1024"다운로드됨 4 실패 1 남음 0: 100%|██████████████████████████| 5/5 [00:01<00:00, 4.53it/초]
다시 실행하려면 지침을 따르세요.