Last active
June 29, 2019 14:10
-
-
Save peti2001/c65b33bae6ace6bd4eff733a9bfbcecd to your computer and use it in GitHub Desktop.
How to use wget to save a page to your disk recursively
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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