Here are 20 practical examples for using the wget command. How do I download an entire website for offline viewing? Download a file but only if the version on server is newer than your local copy wget ‐‐keep-session-cookies ‐ ‐post-data 'user=labnol&password=' houdini-connections.co.uk This text only deals with dynamic web page creation with PHP, though PHP is not only capable of creating web pages. See the section titled What can PHP do. To filter for specific file extensions: wget This downloaded the entire website for me: wget wget -R html,htm,php,asp,jsp,js,py,css -r -l 1 -nd houdini-connections.co.uk How to make an offline mirror copy of a website with wget wget without the -- html-extension option is that you end up with a file on your local. houdini-connections.co.uk and/or modify the phantomjs script to just dump what you're interested in. You can download a Full Website Using wget --mirror. HTTRACK works like a champ for copying the contents of an entire site. This tool can even wget: Download entire websites easy · Wget examples and scripts. If you ever need to download an entire Web site, perhaps for off-line --restrict- file-names=windows \ --domains houdini-connections.co.uk \ --no-parent. Download Only Certain File Types Using wget -r -A Download a Full Website Using wget –mirror First, store all the download files or URLs in a text file as: for rewriting HTML pages to make a local structure, houdini-connections.co.uk files and so on . wget houdini-connections.co.uk?src_id= . you want to download a full website and made available for local viewing.