httrack "http://www.example.com/" -O ./folder-to-save -v -s0 --depth=1 -n
httrack "http://www.example.com/" -O ./folder-to-save -r1
To save all files in current directory use .
- Download site
httrack "http://www.example.com/" -O ./temp -r1
- Copy folder www.example.com form temp and rename to site name e.g example
- Remove temp folder
brew install httrack
- Open your HTML file in VSCode.
- Press Ctrl + H to bring up the Find and Replace panel.
- Enable the Regular Expression option by clicking the .* button (or pressing Alt + R).
- Use the following regular expression in the Find field:
(<a[^>]*?)\s+href="[^"]*"
- In the Replace field, enter:
$1
- Click Replace All.
srcset="[^"]*"
sizes="[^"]*"
Add this script right after title in head
<script>
window.onload = function () {
const height = document.body.scrollHeight;
window.parent.postMessage(height, "*");
};
</script>