{"id":52,"date":"2018-07-25T12:23:49","date_gmt":"2018-07-25T08:23:49","guid":{"rendered":"http:\/\/kidds.co.za\/?p=52"},"modified":"2018-07-25T12:23:49","modified_gmt":"2018-07-25T08:23:49","slug":"download-files-from-the-web-with-wget","status":"publish","type":"post","link":"https:\/\/kidds.co.za\/index.php\/2018\/07\/25\/download-files-from-the-web-with-wget\/","title":{"rendered":"Download Files From The Web With wget"},"content":{"rendered":"<figure id=\"figure-article_2-0-11\" class=\"comp figure-article figure-landscape\">\n<div class=\"figure-media\">\n<div class=\"img-placeholder\"><img loading=\"lazy\" decoding=\"async\" class=\" lazyloaded\" src=\"https:\/\/www.lifewire.com\/thmb\/vy6_tsHbJ5oqaSVKGx7vqBJpaXY=\/768x0\/filters:no_upscale():max_bytes(150000):strip_icc():format(webp)\/wgetslide-56a5ab103df78cf7728954e5.jpg\" srcset=\"https:\/\/www.lifewire.com\/thmb\/57lDKb180kP1ZO3byELbfi_DxJA=\/300x0\/filters:no_upscale():max_bytes(150000):strip_icc():format(webp)\/wgetslide-56a5ab103df78cf7728954e5.jpg 300w, https:\/\/www.lifewire.com\/thmb\/b8s3e1rQ4zuGnaBZyOfgkDBc79E=\/417x0\/filters:no_upscale():max_bytes(150000):strip_icc():format(webp)\/wgetslide-56a5ab103df78cf7728954e5.jpg 417w, https:\/\/www.lifewire.com\/thmb\/W5Z4vYjICq3zaObB6pjxGSXKA08=\/534x0\/filters:no_upscale():max_bytes(150000):strip_icc():format(webp)\/wgetslide-56a5ab103df78cf7728954e5.jpg 534w, https:\/\/www.lifewire.com\/thmb\/vy6_tsHbJ5oqaSVKGx7vqBJpaXY=\/768x0\/filters:no_upscale():max_bytes(150000):strip_icc():format(webp)\/wgetslide-56a5ab103df78cf7728954e5.jpg 768w\" alt=\"download files from wget\" width=\"428\" height=\"241\" data-srcset=\"https:\/\/www.lifewire.com\/thmb\/57lDKb180kP1ZO3byELbfi_DxJA=\/300x0\/filters:no_upscale():max_bytes(150000):strip_icc():format(webp)\/wgetslide-56a5ab103df78cf7728954e5.jpg 300w, https:\/\/www.lifewire.com\/thmb\/b8s3e1rQ4zuGnaBZyOfgkDBc79E=\/417x0\/filters:no_upscale():max_bytes(150000):strip_icc():format(webp)\/wgetslide-56a5ab103df78cf7728954e5.jpg 417w, https:\/\/www.lifewire.com\/thmb\/W5Z4vYjICq3zaObB6pjxGSXKA08=\/534x0\/filters:no_upscale():max_bytes(150000):strip_icc():format(webp)\/wgetslide-56a5ab103df78cf7728954e5.jpg 534w, https:\/\/www.lifewire.com\/thmb\/vy6_tsHbJ5oqaSVKGx7vqBJpaXY=\/768x0\/filters:no_upscale():max_bytes(150000):strip_icc():format(webp)\/wgetslide-56a5ab103df78cf7728954e5.jpg 768w\" data-src=\"https:\/\/www.lifewire.com\/thmb\/vy6_tsHbJ5oqaSVKGx7vqBJpaXY=\/768x0\/filters:no_upscale():max_bytes(150000):strip_icc():format(webp)\/wgetslide-56a5ab103df78cf7728954e5.jpg\" data-expand=\"300\" \/><\/div>\n<p><a id=\"button-pinterest-image\" class=\"pinit-btn\" title=\"Pin to Pinterest\" href=\"https:\/\/www.lifewire.com\/linux-terminal-commands-rock-your-world-2201165#\" data-type=\"sharePinterest\" data-pin-media=\"https:\/\/www.lifewire.com\/thmb\/apd__E4dAmeyaAbhPbHB191b-Uk=\/735x0\/wgetslide-56a5ab103df78cf7728954e5.jpg\" data-pin-url=\"https:\/\/www.lifewire.com\/linux-terminal-commands-rock-your-world-2201165?utm_source=pinterest&amp;utm_medium=social&amp;utm_campaign=shareurlbuttons_nip\" data-pin-custom=\"true\" data-pin-description=\"15 Linux Terminal Commands That Will Rock Your World: Download Files From The Web With wget\" data-network=\"pinterest\" data-pin-do=\"skipLink\" data-source=\"pinitBtn\"><\/a><\/div><figcaption class=\"figure-article-caption\">\u00a0download files from wget.<\/figcaption><\/figure>\n<p>wget makes it possible for you to download files from the web using the terminal.<\/p>\n<p>The syntax is as follows:<\/p>\n<blockquote><p>wget path\/to\/filename<\/p><\/blockquote>\n<p>For example:<\/p>\n<blockquote><p>wget\u00a0http:\/\/sourceforge.net\/projects\/antix-linux\/files\/Final\/MX-krete\/antiX-15-V_386-full.iso\/download<\/p><\/blockquote>\n<p>There are a large number of switches that can be used with wget such as -O which lets you output the filename to a new name.<\/p>\n<p>In the example above I downloaded \u00a0AntiX Linux from Sourceforge. The filename antiX-15-V_386-full.iso is quite long. It would be nice to download it as just antix15.iso. To do this use the following command:<\/p>\n<blockquote><p>wget -O antix.iso http:\/\/sourceforge.net\/projects\/antix-linux\/files\/Final\/MX-krete\/antiX-15-V_386-full.iso\/download<\/p><\/blockquote>\n<p>Downloading a single file doesn&#8217;t seem worth it, you could easily just navigate to the web page using a browser and click the link.<\/p>\n<p>If, however, you want to download a dozen files then being able to add the links to an import file and use wget to download the files from those links will be much quicker.<\/p>\n<p>Simply use the the -i switch as follows:<\/p>\n<blockquote><p>wget -i \/path\/to\/importfile<\/p><\/blockquote>\n<p>For more about wget visit\u00a0<a href=\"https:\/\/www.tecmint.com\/10-wget-command-examples-in-linux\/\" target=\"_blank\" rel=\"nofollow noopener\" data-component=\"link\" data-source=\"inlineLink\" data-type=\"externalLink\" data-ordinal=\"2\">http:\/\/www.tecmint.com\/10-wget-command-examples-in-linux\/<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0download files from wget. wget makes it possible for you to download files from the web using the terminal. The syntax is as follows: wget path\/to\/filename For example: wget\u00a0http:\/\/sourceforge.net\/projects\/antix-linux\/files\/Final\/MX-krete\/antiX-15-V_386-full.iso\/download There are a large number of switches that can be used with wget such as -O which lets you output the filename to a new name. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-52","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/posts\/52","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/comments?post=52"}],"version-history":[{"count":1,"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/posts\/52\/revisions"}],"predecessor-version":[{"id":53,"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/posts\/52\/revisions\/53"}],"wp:attachment":[{"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/media?parent=52"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/categories?post=52"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/tags?post=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}