Skip to content

Instantly share code, notes, and snippets.

@weatheredwatcher
Created June 16, 2012 01:31
Show Gist options
  • Save weatheredwatcher/2939540 to your computer and use it in GitHub Desktop.
Save weatheredwatcher/2939540 to your computer and use it in GitHub Desktop.
Simple script that I wrote that utilizes wget to rip a site onto your computer
#!/usr/bin/env python
# file: rip_site.py
import sys
import os
domain = sys.argv[1]
path = sys.argv[2]
os.system ('wget --recursive --no-clobber -- page-requisites --html-extension --convert-links --restrict-file-names=windows --domains ' + domain + ' --no-parent ' + path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment