{"id":16,"date":"2010-02-01T14:43:56","date_gmt":"2010-02-01T13:43:56","guid":{"rendered":"http:\/\/toderu.ro\/blog\/?p=16"},"modified":"2010-02-01T14:43:56","modified_gmt":"2010-02-01T13:43:56","slug":"wget-download-entire-web","status":"publish","type":"post","link":"https:\/\/kb.toderu.ro\/?p=16","title":{"rendered":"wget download entire web"},"content":{"rendered":"<p>\t\t\t\tIf you ever need to download an entire Web site, perhaps for<br \/>\noff-line viewing, wget can do the job.for example:<br \/>\n<code>$ wget \\<br \/>\n--recursive \\<br \/>\n--no-clobber \\<br \/>\n--page-requisites \\<br \/>\n--html-extension \\<br \/>\n--convert-links \\<br \/>\n--restrict-file-names=windows \\<br \/>\n--domains website.org \\<br \/>\n--no-parent \\<\/code><br \/>\nwww.website.org\/tutorials\/html\/<br \/>\nThis command downloads the Web site www.website.org\/<br \/>\ntutorials\/html\/.<br \/>\nThe options are:<br \/>\n <code>--recursive<\/code>: download the entire Web site.<br \/>\n <code>--domains website.org<\/code>: don.t follow links outside website.org.<br \/>\n<code>--no-parent<\/code>: don.t follow links outside the directory<br \/>\ntutorials\/html\/.<br \/>\n<code>--page-requisites<\/code>: get all the elements that compose the<br \/>\npage (images, CSS and so on).<br \/>\n<code>--html-extension<\/code>: save files with the .html extension.<br \/>\n<code>--convert-links<\/code>: convert links so that they work locally, off-line.<br \/>\n<code>--restrict-file-names=windows<\/code>: modify filenames so that<br \/>\nthey will work in Windows as well.<br \/>\n<code>--no-clobber<\/code>: don.t overwrite any existing files (used in case<br \/>\nthe download is interrupted and resumed). \t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you ever need to download an entire Web site, perhaps for off-line viewing, wget can do the job.for example: $ wget \\ &#8211;recursive \\ &#8211;no-clobber \\ &#8211;page-requisites \\ &#8211;html-extension \\ &#8211;convert-links \\ &#8211;restrict-file-names=windows \\ &#8211;domains website.org \\ &#8211;no-parent \\ www.website.org\/tutorials\/html\/ This command downloads the Web site www.website.org\/ tutorials\/html\/. The options are: &#8211;recursive: download the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-16","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16"}],"version-history":[{"count":0,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/posts\/16\/revisions"}],"wp:attachment":[{"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}