Skip to main content

pure python download utility

Project description

Usage

python -m wget <URL>

API Usage

>>> import wget
>>> url = 'http://www.futurecrew.com/skaven/song_files/mp3/razorback.mp3'
>>> filename = wget.download(url)
100% [................................................] 3841532 / 3841532>
>> filename
'razorback.mp3'

The skew that you see above is a documented side effect. Alternative progress bar:

>>> wget.download(url, bar=bar_thermometer)

ChangeLog

2.0 (2013-04-26)
  • it shows percentage

  • it has usage examples

  • it changes if being used as a library

    • download shows progress bar by default

    • bar_adaptive gets improved algorithm

    • download(url, bar) contains bar parameter

      • bar(current, total)

    • progress_callback is named callback_progress

1.0 (2012-11-13)
  • it runs with Python 3

0.9 (2012-11-13)
  • it renames file if it already exists

  • it can be used as a library

    • download(url) returns filename

    • bar_adaptive() draws progress bar

    • bar_thermometer() simplified bar

0.8 (2011-05-03)
  • it detects filename from HTTP headers

0.7 (2011-03-01)
  • compatibility fix for Python 2.5

  • limit width of progress bar to 100 chars

0.6 (2010-04-24)
  • it detects console width on POSIX

0.5 (2010-04-23)
  • it detects console width on Windows

0.4 (2010-04-15)
  • it shows cute progress bar

0.3 (2010-04-05)
  • it creates temp file in current dir

0.2 (2010-02-16)
  • it tries to detect filename from URL

0.1 (2010-02-04)
  • it can download file

Release Checklist

[ ] update version in wget.py
[x] update description in setup.py
[ ] python setup.py sdist
[ ] python setup.py upload

– anatoly techtonik <techtonik@gmail.com>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wget-2.0.tar.gz (6.3 kB view details)

Uploaded Source

File details

Details for the file wget-2.0.tar.gz.

File metadata

  • Download URL: wget-2.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wget-2.0.tar.gz
Algorithm Hash digest
SHA256 9a5f5ee72f2a7513886881b03acd0dddd138a64e5e80ee48b299d54e3ce1f257
MD5 bbcb93502cce2fc2ed0c3d2b56579909
BLAKE2b-256 36b9bf6e205d6bfa5fe1a4f81bb17f60a7c2ff01cd9992f8c0168febf1396c77

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page