Koepnick

Use Wget to download a page with all assets

Dec 14th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.41 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. [ -z "$1" ] && echo 'Usage: get_article_raw <http://domain.com> <path/to/page>' && exit 1
  4. [ -z "$2" ] && echo "Usage: get_article_raw <http://domain.com> <path/to/page>" && exit 1
  5.  
  6. echo "Downloading ${1}/${2}"
  7. wget \
  8.      --no-clobber \
  9.      --page-requisites \
  10.      --adjust-extension \
  11.      --span-hosts \
  12.      --convert-links \
  13.      --domains cracked.com \
  14.      --no-parent \
  15. "${1}/${2}"
Add Comment
Please, Sign In to add comment