How can we save the webpage including the content in it, so that it is viewable offline, using wget in python language? Currently I am using the following code:
import wget
driver.webdriver.Chrome()
driver.get("http://www.yahoo.com")
wget.download("http://www.yahoo.com", C:\\Users\\karanjuneja\\Downloads\\kj\\yahoo.mhtml")
This works and strores an mhtml version of the webpage in the folder, but when you open the file, you will only find the codes written and not the page how it appears online. Any suggestions? Thanks Karan