Search code examples
pythonextractrar

How to extract information inside text files, inside rar files in python?


I have a .rar file say for example English-Lexicon.rar Inside this .rar file, are two .txt files, i.e neg.txt and pos.txt. I need to access the contents inside the neg.txt and pos.txt using python. How can this be done? I'm fairly new to python.


Solution

  • Haven't used it, but google came up with rarfile.