Skip to content

Instantly share code, notes, and snippets.

@WPsites
Created May 28, 2012 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WPsites/2819623 to your computer and use it in GitHub Desktop.
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.
$ wget -nH --no-clobber --page-requisites --html-extension --restrict-file-names=windows --domains www.website-address.co.uk http://www.website-address.co.uk/
@WPsites
Copy link
Author

WPsites commented May 28, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment