Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #106279 > unrolled thread

Re: extract rar

Started byDFS <nospam@dfs.com>
First post2016-04-02 03:56 -0400
Last post2016-04-02 03:56 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: extract rar DFS <nospam@dfs.com> - 2016-04-02 03:56 -0400

#106279 — Re: extract rar

FromDFS <nospam@dfs.com>
Date2016-04-02 03:56 -0400
SubjectRe: extract rar
Message-ID<ndntov$po3$1@dont-email.me>
On 4/1/2016 5:01 PM, Jianling Fan wrote:
> Thanks, but the problem is that I am not allowed to install any
> software in my office PC, even free software.
> Normally, I use zip files but this time I need to extract a rar file.
> I don't like to go to IT guys because it takes time.
> That's why I am looking for an alternative way without installing
> other software.
>
>   Thanks,
>
> On 1 April 2016 at 13:37, Albert-Jan Roskam <sjeik_appie@hotmail.com> wrote:
>>
>>
>>
>>> Date: Fri, 1 Apr 2016 13:22:12 -0600
>>> Subject: extract rar
>>> From: fanjianling@gmail.com
>>> To: python-list@python.org
>>>
>>> Hello everyone,
>>>
>>> I am wondering is there any way to extract rar files by python without
>>> WinRAR software?
>>>
>>> I tried Archive() and patool, but seems they required the WinRAR software.
>>
>> Perhaps 7-zip in a Python subprocess:
>> http://superuser.com/questions/458643/unzip-rar-from-command-line-with-7-zip/464128


I'm not experienced with Python, but I found this:

"pip install patool
import patoolib
patoolib.extract_archive("foo_bar.rar", outdir=".")
Works on Windows and linux without any other libraries needed."

http://stackoverflow.com/questions/17614467/how-can-unrar-a-file-with-python

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web