Download and unzip files
-
What is the best way to download and unzip zip files? Can this be done in StaSh? I'm trying to download a CSV file from http://data.worldbank.org/.
-
You can use the included
requests
andzipfile
modules. Check the documentation for more information.
-
@macfox2 If you want to use StaSh, download the file using 'wget url_here' and unzip it using 'unzip file_here'.
-
Like what @Webmaster4o said... https://github.com/cclauss/Ten-lines-or-less/blob/master/world_bank_data.py
-
Thank you, @bennr01 -- that did the trick!