Here is a pure Python script that saves htmlan HTML page without CSS but with all images on it and replaces all hrefs with a path of an image on the hard drive.
I know that there are great libraries like BeautifulSoupBeautifulSoup and others but I would like to try myself with pure Python.