Skip to content

Instantly share code, notes, and snippets.

@DmitrySandalov
Created July 16, 2013 08:38
Show Gist options
  • Save DmitrySandalov/6006944 to your computer and use it in GitHub Desktop.
Save DmitrySandalov/6006944 to your computer and use it in GitHub Desktop.
Download all files from website using wget (+encoding)
#!/bin/zsh
wget -m -p -E -k -K -np --restrict-file-names=nocontrol http://site/path/
@maciej-trebacz
Copy link

Thanks! This is the command I was looking for for downloading websites that included polish characters in URLs. I was getting Illegal byte sequence and Cannot write to errors before. Using --restrict-file-names=nocontrol helped :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment