{"id":10391,"date":"2019-01-04T09:00:28","date_gmt":"2019-01-04T14:00:28","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/?p=10391"},"modified":"2019-01-04T08:55:21","modified_gmt":"2019-01-04T13:55:21","slug":"download-lots-of-files","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2019\/01\/04\/download-lots-of-files\/","title":{"rendered":"Download Lots of Files"},"content":{"rendered":"<p><html xmlns:fo=\"http:\/\/www.w3.org\/1999\/XSL\/Format\" xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\"><\/p>\n<p><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/profile\/authors\/603712-greg-wolff\">Greg&#8217;s<\/a> pick this week is <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/48197-matlab-data-download\">Matlab Data Download<\/a> by <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/profile\/authors\/3430999-marcus-vollmer\">Marcus Vollmer<\/a>. <\/p>\n<p>Perform a search of a website based on file extensions, and then download the files.<\/p>\n<h3>Download by File Type is Easy<\/h3>\n<p> <a href=\"https:\/\/blogs.mathworks.com\/pick\/files\/writeUp_01-1.png\"><img decoding=\"async\" loading=\"lazy\" width=\"300\" height=\"250\" src=\"https:\/\/blogs.mathworks.com\/pick\/files\/writeUp_01-1-300x250.png\" alt=\"\" class=\"alignnone size-medium wp-image-10393\" \/><\/a><\/p>\n<p>Marcus makes it pretty easy to enter a URL, search criteria, and download the selected files.<\/p>\n<p>He includes a progress bar with a cancel button, making it easy to see how many files have been downloaded, and halting the download operation. <\/p>\n<p>Installation is easy via the <a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2018b\/matlab\/creating_guis\/what-is-an-app.html\">MATLAB App Installer File (mlappinstall)<\/a>, adding the Matlab Data Download app to the Apps tab in MATLAB. You can manage the App from the <a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2018b\/matlab\/matlab_env\/manage-your-add-ons.html\">MATLAB Add-on Manager<\/a>. <\/p>\n<p><b>Note:<\/b> The example URL provided in the Matlab Data Download app is no longer valid. I had to use the following instead: <\/p>\n<p><a href=\"https:\/\/arlweb.msha.gov\/OpenGovernmentData\/OGIMSHA.asp\"> <inline style=\"font-family: monospace, monospace; font-size: inherit;\">https:\/\/arlweb.msha.gov\/OpenGovernmentData\/OGIMSHA.asp<\/inline><\/a><\/p>\n<h3>Uses WEBSAVE as the enabling function<\/h3>\n<p>The key function that enables the download of the files is the <a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2018b\/matlab\/ref\/websave.html\">WEBSAVE<\/a> function, which permits RESTful queries to download a file. <\/p>\n<h3>Does MATLAB Need a Download Manager?<\/h3>\n<p>Is this a type of feature you would like to see as a native App in MATLAB? Maybe connected to the <a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2018b\/matlab\/import_export\/import-data-interactively.html\">Import Tool<\/a> or the MATLAB <a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2018b\/matlab\/import_export\/what-is-a-datastore.html\">Datastore<\/a><\/p>\n<p>Let us know <a href=\"http:\/\/blogs.mathworks.com\/pick\/?p=10391#respond\">here<\/a>. <\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img decoding=\"async\"  class=\"img-responsive\" src=\"https:\/\/blogs.mathworks.com\/pick\/files\/writeUp_01-1-300x250.png\" onError=\"this.style.display ='none';\" \/><\/div>\n<p>\nGreg&#8217;s pick this week is Matlab Data Download by Marcus Vollmer.<br \/>\nPerform a search of a website based on file extensions, and then download the files.<br \/>\nDownload by File Type is Easy<\/p>\n<p>Marcus&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2019\/01\/04\/download-lots-of-files\/\">read more >><\/a><\/p>\n","protected":false},"author":36,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/10391"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/users\/36"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=10391"}],"version-history":[{"count":5,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/10391\/revisions"}],"predecessor-version":[{"id":10405,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/10391\/revisions\/10405"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=10391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=10391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=10391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}