title: Wget & Python / No user option
body: <p>I use the python library <code>wget</code>:</p>
  
  <pre><code>import wget
  wget.download("https://example.com")
  </code></pre>
  
  <p>It gives me the following error:</p>
  
  <pre><code>IOError: ('http error', 401, 'Unauthorized', &lt;httplib.HTTPMessage instance at 0x10728c0&gt;)
  </code></pre>
  
  <p>This happens because I should use the option of user &amp; password in order to get the files.</p>
  
  <p>Is there any option for that? If not, what is the best way to download a folder in python from external repository with user and password?</p>