Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Parser and Renamer for torrents files (Movies and series)

Project description

Build status PyPI version pypi downloads > Extract informations from torrents files

*This library is in progress.*

It’s a python library to extract infos from a torrent filename. The parser extract a maximun infos to finnaly get the movie or serie title. The infomations store in a tuple with 2 dictonaries The program use regex to get infos. In the futur the program allow to choose options to rename files. And several other features coming soon. Later the library will be transformed in a Program


  1. *Auto* ``` pip install MovieSerieTorrent ````
  2. *Manual*

Clone repo and run in good directory. git clone   cd ../MovieSerieTorrent   python install

  1. *Verify*

Verify that you have install fuzzywuzzy correctly –> GitHub



from MovieSerieTorrent import *


Extract infos from filename and return a tuple with 2 dictionary.
Parser().parse('[ ] Enrages.2015.FRENCH.BDRip.XViD-FUNKKY.avi')
#({'title': 'Enrages',
#  'year': '2015',
#  'languages': 'FRENCH',
#  'quality': 'BDRip',
#  'extension': 'avi'
#  'type': 'movie'},

#  {'group': 'FUNKKY',
#  'sites': '',
#  'codec': 'XViD'})

First element from tuple : * Title * Year (Movie) * Language * Extention file * Quality * Season (Serie) * Episode (Serie)

Second element: * Sites download * Resolution * Audio * Uploader * Codec


Rename file with infos extract from Parser.
Renamer().preview('[ ] Enrages.2015.FRENCH.BDRip.XViD-FUNKKY.avi')
#Enrages (2015)-FRENCH-.avi

Preview filename, but but does not rename

path = '/Users/Jonh/Movies/'
Renamer().renaming(path, '[ ] Enrages.2015.FRENCH.BDRip.XViD-FUNKKY.avi')
#Enrages (2015)-FRENCH-.avi
Renamer().renaming(path, '[ ] Blindspot.S01E03.FASTSUB.VOSTFR.HDTV.XviD-ZT.avi')

Rename file in directory.


Use Parser to create a table with files.
path = '/Users/Jonh/Movies/'


Library used.

  • re (regex compilator and matcher library). DOC
  • os (operating system). DOC
  • tabulate (create table). GitHub
  • colorama (color in terminal) GitHub
  • fuzzywuzzy (string matcher). GitHub


  • Handler for terminal to set option
  • Continue GUI (tkinter)
  • Option choose path
  • Imdb search for movie and serie to rename better.
  • Unit tests


Pull requests, commits or issues are welcome!


MIT © Jonathan Petit

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for MovieSerieTorrent, version 1.0.16
Filename, size File type Python version Upload date Hashes
Filename, size MovieSerieTorrent-1.0.16.tar.gz (7.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page