Home > python > painless download with the wget module

painless download with the wget module

Problem
You want to download something to your local machine.

Solution
You can use the wget module for this purpose:

import wget

wget.download(url)

It cannot be any simpler. You can find wget on PyPi. Installation via pip.

Note that the module uses urllib.urlretrieve for downloading, not wget.

Advertisements
Categories: python Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: