title: Equivalent of wget in Python to download website and resources
body: <p>Same thing asked 2.5 years ago in <a href="https://stackoverflow.com/questions/844115/downloading-a-web-page-and-all-of-its-resource-files-in-python">Downloading a web page and all of its resource files in Python</a> but doesn't lead to an answer and the 'please see related topic' isn't really asking the same thing.</p>
  
  <p>I want to download everything on a page to make it possible to view it just from the files.</p>
  
  <p>The command</p>
  
  <blockquote>
    <p>wget --page-requisites --domains=DOMAIN --no-parent --html-extension --convert-links --restrict-file-names=windows</p>
  </blockquote>
  
  <p>does exactly that I need. However we want to be able to tie it in with other stuff that must be portable, so requires it to be in Python.</p>
  
  <p>I've been looking at Beautiful Soup, scrapy, various spiders posted around the place, but these all seem to deal with getting data/links in clever but specific ways. Using these to do what I want seems like it will require a lot of work to deal with finding all of the resources, when I'm sure there must be an easy way.</p>
  
  <p>thanks very much</p>