Re: Unzip Files



On Sun, May 31, 2009 at 2:42 PM, Brock <btibert3@xxxxxxxxx> wrote:
Hi all,

I am new to python, so please don't attack me if this question is easy
or basic.  How can I go about extracting the contents of a zip file to
the same directory?  Can I extend this question to a zip file that
sits on the internet?

Point being I need to work with the files inside the zipped file, and
there are times when the file is already on my computer, and their
others where the datafile sits on the Internet.

Any help you can provide will be greatly appreciated.  In full
disclosure, I usually learn by example and not by trial and error, so
any nudges in the right direction will be greatly appreciated.

See the extractall() method of ZipFile objects --
http://docs.python.org/library/zipfile.html

Cheers,
Chris
--
http://blog.rebertia.com
.



Relevant Pages

  • Re: The Future
    ... packets using your WiFi connection would be as natural as extracting ... To sense the internet would require a permanently wired connection. ...
    (comp.lang.cobol)
  • Unzip Files
    ... I am new to python, so please don't attack me if this question is easy ... How can I go about extracting the contents of a zip file to ... others where the datafile sits on the Internet. ...
    (comp.lang.python)
  • unzip control
    ... Does anybody know which company delivers een ActiveX control for extracting ... I found on the Internet a lot of sites but I don't ... TIA Leo ...
    (microsoft.public.vb.com)
  • XP MsgBox icons
    ... I know this must have been asked many times, but I can't find them either on my computer or on the internet. ... Tried extracting as well from Shell32.dll, ... It is for a custom MsgBox ActiveX dll. ... RBS ...
    (microsoft.public.vb.general.discussion)
  • Re: How to obtain the unrar overall progress report?
    ... > unrar's overall progress report for inclusion into my ... > python code but so far I have not been successful. ... report is because the OPR appears at the end of each unrar output line ... Extracting foo/cd1/Track01.flac OK ...
    (Fedora)