Skip to main content

Usage

python -m wget [options] <URL>

options:

-o –output FILE|DIR output filename or directory

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

3.2 (2015-10-22)
3.1 (2015-10-18)
3.0 (2015-10-17)
2.2 (2014-07-19)
  • it again can download without -o option

2.1 (2014-07-10)
  • it shows command line help

  • -o option allows to select output file/directory

    • download(url, out, bar) contains out parameter

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 check -mrs
[ ] python setup.py sdist upload
[ ] tag hg version

– anatoly techtonik <techtonik@gmail.com>

Release files for wget 3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wget 3.2
File Size Uploaded
wget-3.2.zip 10.9 kB Details

Release files / wget-3.2.zip

Download URL wget-3.2.zip
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
35e630eca2aa50ce998b9b1a127bb26b30dfee573702782aa982f875e3f16061
BLAKE2b-256 checksum
How to use checksums
476a62e288da7bcda82b935ff0c6cfe542970f04e29c756b0e147251b2fb251f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

3.2 This release

1 release file

3.1

1 release file

3.0

1 release file

2.2

1 release file

2.1

1 release file

2.0

1 release file

1.0

1 release file

0.9

1 release file

0.8

1 release file

0.7

1 release file

0.6

1 release file

0.5

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page