Last active
September 29, 2022 16:37
-
-
Save brainsik/58accbb1a6bd33d56ae1723604fd2c85 to your computer and use it in GitHub Desktop.
Create a static HTML archive of a MediaWiki site.
This file contains 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
# $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