How to read android documents offline (use wget mirror a site)
Recently, I’m interesting with android, but they only have online documents now. I can’t access the internet freely when I’m at home, so I want to download the documents and read them offline.
I searched the internet, and found wget can deal with this task very well.
wget --mirror --no-parent --page-requisites --convert-links --no-host-directories http://code.google.com/intl/zh/android/documentation.html
--mirror : Mirror is equivalent to "-r -N -l inf --no-remove-listing" (basically, infinite recursion).
--no-parent : Do not follow links that ascend to the parent directory. Only follow links that are under the given URL.
--page-requisites : Download all page requisites necessary to display the page (images, CSS, javascript, etc.).
--convert-links : Convert links in the pages so that they work locally relative to the OUTPUT_DIR.
--no-host-directories : Don't create host name directories.
Two additional useful options:
-A: Accept list, define which files you need.
-R:Reject list, define which files you don’t need.
I got that from http://www.noah.org/wiki/Offline_mirror_with_wget
Recent Comments