Skip to content

Instantly share code, notes, and snippets.

@peti2001
Last active June 29, 2019 14:10
Show Gist options
  • Save peti2001/c65b33bae6ace6bd4eff733a9bfbcecd to your computer and use it in GitHub Desktop.
Save peti2001/c65b33bae6ace6bd4eff733a9bfbcecd to your computer and use it in GitHub Desktop.
How to use wget to save a page to your disk recursively
# Auth is required
wget --no-cookies --header "Cookie: XSRF-TOKEN=token; laravel_session=session" --recursive --no-clobber --page-requisites --html-extension --convert-links --domains example.com --no-parent --reject-regex=example.com/logout http://example.com
# No auth
wget --no-cookies --no-clobber --page-requisites --html-extension --convert-links --domains example.com --no-parent http://example.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment