Skip to content

Instantly share code, notes, and snippets.

@AyHa1810
Created February 28, 2024 06:31
Show Gist options
  • Save AyHa1810/deb2cbd40324a33217d31b5841f8e18f to your computer and use it in GitHub Desktop.
Save AyHa1810/deb2cbd40324a33217d31b5841f8e18f to your computer and use it in GitHub Desktop.
HTTrack website downloader script with optimized options i guess, best for downloading static pages. idk how dynamic pages would work
# Downloads the site from given link using HTTrack Website Copier in the PWD folder
# $ sudo apt install httrack
# options set according to AyHa1810's preferations
link=
httrack -i \
-r9999 -%e0 -A3145728 -%c10 \
-c8 -R4 -T240 \
-%P -nt \
-N0 -K0 -x -%x -%q0 -o -X\
-b1 -u1 -j1 -s2 -%k -%s -%u \
-%A "php2,php3,php4,php,cgi,asp,jsp,pl,cfm,nsf=text/html;dat,bin=application/x-zip" \
-F "HTTrack/3.0x" -%F "" -%l "en, jp, *" \
-C1 -%v1 -fI -%i -%I \
-p7 -Ba $@\
"$link" \
+*[name].$link/* +$link/*
# replace $link with the link you wanna make an offline copy of or put
# the link in the $link variable above
# run `httrack --help` to learn about what each flag does
# side note: it would be easier to use one of the GUI apps (WinHTTrack
# on Windows, WebHTTrack for browsers (install on Linux), HTTrack on
# Android, HTTraQt on Linux (GUI)), but eh cli ftw
# more text than the actual code lmao
# other temp stuff pls ignore :D
# -p3
# Script by AyHa1810
# HTTrack:
# https://www.httrack.com/
# https://github.com/xroche/httrack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment