Skip to content

Instantly share code, notes, and snippets.

@pquentin
Created September 15, 2014 07:32
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 pquentin/1474f29440ac560f6c33 to your computer and use it in GitHub Desktop.
Save pquentin/1474f29440ac560f6c33 to your computer and use it in GitHub Desktop.
Crawl a Dokuwiki user page and suppages
#!/bin/bash
rm -rf hostname
wget \
-e robots=off \
--recursive --level=inf \
--no-verbose \
--page-requisites \
--convert-links \
--html-extension \
--accept-regex '.*user.*|lib/tpl|lib/exe/css|lib/plugins|fetch.php|js.php|lib/scripts|.*user:rapport.*' \
--reject-regex 'do=' \
'http://hostname/dokuwiki/doku.php?id=user:a_user'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment