Generic web archiving script