Created
March 17, 2019 08:28
-
-
Save moarbytes/f705e752950ea8c8309b7a175e0ce68c to your computer and use it in GitHub Desktop.
small bash script that uses wget to create a local archive
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
| #!/bin/bash | |
| wget -mbc -np "$1" \ | |
| --convert-links \ | |
| --adjust-extension \ | |
| --page-requisites --no-check-certificate --restrict-file-names=nocontrol \ | |
| -e robots=off \ | |
| --waitretry 10 \ | |
| --timeout 120 \ | |
| --tries 10 \ | |
| --wait 1 \ | |
| --user-agent "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.20.25 (KHTML, like Gecko) Version/5.0.4 Safari/533.20.27" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment