Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Replicate a website
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib Fixed paths for vhost
test
.document Initial commit to weblicate.
.gitignore Initial commit to weblicate.
LICENSE
README.rdoc
Rakefile

README.rdoc

weblicate

Replicate a website.

Weblicate creates a copy of a web page, complete with third party assets, to be run on your own webserver. When given a HAR file, weblicate writes all assets to local disk. It appends a domain to the end of all URLs so you can simulate external requests from sites like doubleclick and google.

HAR (HTTP Archive) files are a great way to pass around information about web pages. Firebug lets you export them.

Installation

You need Ruby and RubyGems installed

sudo gem install weblicate

Usage

Running the following command:

weblicate www.cnn.com.har

generates the following output:

www.cnn.com-files  # All files and assets for the page
www.cnn.com-hosts  # Entries that can be added to your local hosts file
www.cnn.com-vhosts # Apache vhosts entries for all domains

and displays some commands that will put your files and apache vhosts in place.

By default, weblicate appends '.localhost' to all domains. You can over ride this if you want you weblicant to be accessible to the greater internet.

weblicate www.cnn.com.har yourdomain.com

Weblicate generates a script that creates the domains. It Works For Me.

www.cnn.com-dns    # A script to create DNS entries (on Slicehost.com)

Copyright

Copyright © 2010 Mike Bailey. See LICENSE for details.

Something went wrong with that request. Please try again.