Skip to content

Instantly share code, notes, and snippets.

@brainsik
Last active September 29, 2022 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brainsik/58accbb1a6bd33d56ae1723604fd2c85 to your computer and use it in GitHub Desktop.
Save brainsik/58accbb1a6bd33d56ae1723604fd2c85 to your computer and use it in GitHub Desktop.
Create a static HTML archive of a MediaWiki site.
# $URL - the url to mirror
# $PATH - where to put the httrack files
httrack $URL -O $PATH -v -x \
--disable-security-limits \
-F 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15' \
-c16 -%c32 -%k \
-s0 -n -%u \
'-*api.php*' '-*index.php*' '-*title=*' '-*Special:*' \
'+*Special:SpecialPages' '+*Special:AllPages' '+*Special:Categories' \
'+*Special:LongPages' '+*Special:MostRevisions' \
'+*Special:ListFiles' '+*Special:ListRedirects' \
'+*Special:Statistics' '+*Special:Version' \
'+*.css' '+*.js''+*.png' '+*.jpg' '+*.svg' '+*.ico'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment