macfox2
Aug 09, 2016 - 21:35
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/.
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 and zipfile 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!