Pure python download utility can batch download of files listed based on a certain URL
Project description
awget
usage: awget.py [-h] [-o OUTPUT] [-d DIRECTORY] [-u USER] [-p PASSWORD] [-s] [-v] url
Pure python download utility,refer to https://pypi.org/project/wget/. The difference is this script can batch download of files listed based on a certain URL,also can download single file. "awget -h" for usage. You can press Ctrl+C break download.
In addition, you can create an ignore.txt file. When you need to ignore some files that need to be downloaded, you can list the files in ignore.txt, with one line for each file. In this way, the download program will ignore downloading these files.
usage
positional arguments:
url URL
options:
-h, --help show this help message and exit
-o OUTPUT, --output OUTPUT Save the file as OUTPUT
-d DIRECTORY, --directory DIRECTORY Save the file to the directory DIRECTORY/
-u USER, --user USER http Authentication username
-p PASSWORD, --password PASSWORD http Authenticate Password
-s, --skip Skip file if it already exists in the target directory
-v, --version version
for example:
python -m awget https://mirrors.aliyun.com/openwrt/releases/17.01.1/packages/aarch64_armv8-a/base/
Third party libraries and install
all os:requests,pyquery
pip install requests,pyquery
windows os: pywin32
pip install pywin32 or pip install pywin32==306
in china can install by a mirror like 'pip install pywin32==306 -i https://pypi.tuna.tsinghua.edu.cn/simple'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file awget-0.0.9.tar.gz.
File metadata
- Download URL: awget-0.0.9.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa9ed8204faaa67fbdc1208b01cff611e0b971312ee6b1e2f614404c60e9c21c
|
|
| MD5 |
3245a1c9054f5dd4ed63bdc45d4b2de0
|
|
| BLAKE2b-256 |
734dbe48d21c773e393c0a242e23f7749af24d81a0a3498b0eec5a2648f14d14
|
File details
Details for the file awget-0.0.9-py3-none-any.whl.
File metadata
- Download URL: awget-0.0.9-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9dae67cc4cab7a40667346d26e21d7eac8ea42e077063913b2507e879c4cd07
|
|
| MD5 |
85589629f997b6c3fba9c03db6a5ddad
|
|
| BLAKE2b-256 |
e1c27874544c795dd50468c4726d829273e533b505d644a5e71b0dcce10d2132
|