Created
May 28, 2012 15:03
-
-
Save WPsites/2819623 to your computer and use it in GitHub Desktop.
Recursive download of a web page (clone) useful if converting a site to WordPress.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ wget -nH --no-clobber --page-requisites --html-extension --restrict-file-names=windows --domains www.website-address.co.uk http://www.website-address.co.uk/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you're converting a site to WordPress run the above command, on the command line, in your bare bones (starter theme) directory. It should create an index.html file and download images, CSS, JS files.. You then split out that index.html file, to make the header, sidebars etc
This will only work on a machine that has wget installed.
It won't do 100% of the work as it may miss assets fetched in scripts etc but its a great starting point.