Tired of WP? Convert your site easily to HTML using Wget

by nik0 Banned
5 replies
  • SEO
  • |
I tried to restore some sites from the wayback machine but this tool is also incredibly handful in case you want to create a backup or simply want to get rid of a slow loading Wordpress.

The tool translates your site to simple static html files and also grabs all the images and what else you need:

Download link:

GNU Wget

Syntax to retrieve complete website:

Code:
wget -m http://site.com
In case of wayback machine:

Code:
wget --no-parent http://web.archive.org/web/20120626012526/http://www.site.com/
Obvious replace site.com and the serie of numbers with what the wayback machine shows you.

The way back code only gets the index.html file btw and whatever is present in that root.

I haven't figured out yet how to download the complete site from the wayback machine as all the guides out there don't work, they try to download whole the web archive, even after specifying that it should ignore the root.

You could try this or a variation of that.

Code:
wget -m --recursive --execute robots=off --no-parent http://web.archive.org/web/20120626012526/http://www.goreeinstitute.org/
Or this one

Code:
wget -e robots=off --mirror --domains=staticweb.archive.org,web.archive.org http://web.archive.org/web/19970708161549/http://www.slackworks.com/
Or a mix of it might work, neither options work for me though so it's quite puzzling.

Anyway the first command works when you want to clone your own website, the one with the -m
#convert #easily #html #site #tired #wget
  • Profile picture of the author markowe
    Nice tip, never thought of using wget to fetch a site from the Web Archive. But there can't be any orphaned pages, right? They have to all be interlinked or they won't get found.

    Once you fetch the site from the Wayback Machine you can also do a regex search and replace on the files to get rid of the prefix on all the urls. There is a free program I found for this for Windows, if like me you suck at shell commands, I will see what the program is called if anyone wants to know.
    Signature

    Who says you can't earn money as an eBay affiliate any more? My stats say otherwise

    {{ DiscussionBoard.errors[8565109].message }}
  • Profile picture of the author yukon
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[8565264].message }}
  • Profile picture of the author markowe
    (Tell you what, I have just reconstructed around 50 pages of an old site from the Wayback Machine and converted to Wordpress - did it myself, as by the time I explain how to do it to someone else, I could have done it myself anyway. Anyone who wants to make a tool to automate this, I will be first in line in the WSO section!)
    Signature

    Who says you can't earn money as an eBay affiliate any more? My stats say otherwise

    {{ DiscussionBoard.errors[8565371].message }}
    • Profile picture of the author naser224u
      Originally Posted by markowe View Post

      (Tell you what, I have just reconstructed around 50 pages of an old site from the Wayback Machine and converted to Wordpress - did it myself, as by the time I explain how to do it to someone else, I could have done it myself anyway. Anyone who wants to make a tool to automate this, I will be first in line in the WSO section!)
      Hi,

      Really sorry for bumping this old thread, but I am in real trouble and need to restore my WordPress site. I have downloaded the files from archive through wayback downloader gem, but don't know how to convert it to WordPress. Any help will be appreciated from you.

      Regards
      {{ DiscussionBoard.errors[10676981].message }}
      • Profile picture of the author markowe
        Originally Posted by naser224u View Post

        Hi,

        Really sorry for bumping this old thread, but I am in real trouble and need to restore my WordPress site. I have downloaded the files from archive through wayback downloader gem, but don't know how to convert it to WordPress. Any help will be appreciated from you.

        Regards
        Hi, (I got your PM too) you might not like the answer, but in short the quickest way for me was to manually create pages/posts and paste the (plain) text into them. Not very elegant, I know, but there is not much alternative.

        If you had a LOT of pages you could paste the content into an Excel table and find some kind of plugin for Wordpress that imports articles in CSV format (I don't know of any but there probably is something like that out there), but I honestly don't know if something like that exists, and it would only be worth it if you had more than say 50 or so pages.
        Signature

        Who says you can't earn money as an eBay affiliate any more? My stats say otherwise

        {{ DiscussionBoard.errors[10677209].message }}
  • Profile picture of the author paulgl
    Oh man...Nik0.....resurrecting the dead....

    If you had a real host, they have a backup available for you....just saying.

    Just start making the same posts, cut and paste.

    Paul
    Signature

    If you were disappointed in your results today, lower your standards tomorrow.

    {{ DiscussionBoard.errors[10677404].message }}

Trending Topics