Chitika

Showing posts with label wget. Show all posts
Showing posts with label wget. Show all posts

Friday, January 3, 2014

wget website subsection fetching

Following "wget" command can be used to fetch portion of website:


wget -r -l3 -k -p -I /docs,/static/images http://www.example.com/man/index.html

Where:
-r   : fetch recursively
-l3 : depth of 3, fist/index page is at depth 1
-k  : convert links to local links for offline viewing
-p  : prerequisites downloads for perfect page viewing (css/images)
-I   : comma seperated list of base path, to only fetch items containing uri starting from these base paths