Project

weblicate

0.0
No commit activity in last 3 years
No release in over 3 years
Replicate a website based on a HAR file
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

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 © 2010 Mike Bailey. See LICENSE for details.