Skip to content

Instantly share code, notes, and snippets.

@dmarrazzo
Created March 12, 2021 09:29
Show Gist options
  • Save dmarrazzo/51ad45cec7d6389b3d42af2b91b8e2f5 to your computer and use it in GitHub Desktop.
Save dmarrazzo/51ad45cec7d6389b3d42af2b91b8e2f5 to your computer and use it in GitHub Desktop.
How to mirror the rhpam doc

How to mirror the doc

Download the first page and extract the links:

curl https://access.redhat.com/documentation/en-us/red_hat_process_automation_manager/7.8/ | sed -n 's/.*href="\([^"]*html-single[^"]*\).*/\1/p' | awk '{print "https://access.redhat.com"$1}' > links.txt

Create the mirror site:

wget --mirror --convert-links --adjust-extension --page-requisites --no-parent -i links.txt 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment