{"id":150,"date":"2016-07-02T12:13:28","date_gmt":"2016-07-02T12:13:28","guid":{"rendered":"http:\/\/info.ffteixeira.net\/2016\/07\/02\/use-wget-to-recursively-download-all-files-of-a-type-like-jpg-mp3-pdf-or-others\/"},"modified":"2016-07-02T12:13:28","modified_gmt":"2016-07-02T12:13:28","slug":"use-wget-to-recursively-download-all-files-of-a-type-like-jpg-mp3-pdf-or-others","status":"publish","type":"post","link":"https:\/\/blog.ffteixeira.net\/?p=150","title":{"rendered":"Use wget to Recursively Download all Files of a Type, like jpg, mp3, pdf or others"},"content":{"rendered":"<p>If you need to download from a site all files of an specific type, you can use <code>wget<\/code> to do it.<\/p>\n<p>Let&#039;s say you want to download all images files with jpg extension.<\/p>\n<pre>\n<code>wget --level=1 -r -A .jpg http:\/\/site.with.images\/url\/\n<\/code><\/pre>\n<p>Now if you need to download all mp3 music files, just change the above command to this:<\/p>\n<pre>\n<code>wget --level=1 -r -A .mp3 http:\/\/site.with.music\/url\/\n<\/code><\/pre>\n<p>The same can be applied to any other type of file. Movies, music, images, and others.<\/p>\n<p>Be respectful with owner&#039;s rights and with the bandwidth of the site and &#8211;level=NUMBER&nbsp; maximum recursion depth (inf or 0 for infinite).<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.garron.me\/en\/bits\/wget-download-image-pdf-type-of-files.html\" target=\"_blank\" rel=\"noopener noreferrer\">Credits <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you need to download from a site all files of an specific type, you can use wget to do it. Let&#039;s say you want to download all images files with jpg extension. wget &#8211;level=1 -r -A .jpg http:\/\/site.with.images\/url\/ Now &hellip; <a href=\"https:\/\/blog.ffteixeira.net\/?p=150\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-150","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts\/150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=150"}],"version-history":[{"count":0,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts\/150\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}