title: Clone a single webpage (with images) and save to index.html
body: <p>I want to clone a single webpage with all the images and no links in the html. I can achieve this with  <code>wget -E -H -k -K -p {url}</code> however this pulls down the webpage with a full structure and you have to navigate to the html file to display the contents. This makes it inconsistent in where the html file to display the webpage would be. </p>
  
  <p>I can also do this <code>wget --no-check-certificate -O index.html -c -k {url}</code> however this keeps the links to images and doesn't make the webpage truly local as it has to go out to the web to display the page properly.</p>
  
  <p>Is there any way to clone a single webpage and spit out an index.html with the images linked locally?</p>
  
  <p>PS: I am using wget through a python script that makes changes to webpages so having an index.html is neccesary for me.  I am interested in other methods if there are better ones.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>So it seems I haven't explain myself well but a bit background info on this project is I am working on a proof of concept for school on an automated phishing script which is supposed to clone a webpage, modify a few action tags and be placed on a local web server so that a user can navigate to it and the page will display correctly. Previously using the -O worked fine for my but since I am now incorporating DNS spoofing into my project the webpage cant have any links pointing externally as they will just end up getting rerouted to my internal webserver and the webpage will look broken. That is why I need to have just the information necessary for the single webpage to be displayed correctly but also have it predictable so that I am able to be sure that when i navigate to the directory I cloned the website from the webpage will be displayed (with proper links to images,css etc..)</p>