title: How can I download entire website using urlib?
body: <p>I need to download entire websiteusing python urlib
  like </p>
  
  <pre><code>import urllib
  
  site = urllib.urlopen('http://www.mathrubumi.com/index.php')
  site_data = site.read()
  </code></pre>
  
  <p>It downloads only the first page. That is index.php. How can I  make the code to download entire website. 
  By looping ??
  or Is there any other way?
  For example in <code>wget</code> looping is not required in the code</p>
  
  <pre><code>wget \ --recursive \--no-clobber \ --page-requisites \ --html-extension \  --convert-links \
       --restrict-file-names=windows \ --domains website.org \    --no-parent \    www.website.org/tutorials/html/
  </code></pre>