Skip to content

mmghannam/subscenery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

subscenery

License: MIT

A subscene.com website scrapper written in python, that outputs a nicely formatted objects for movie/series subtitles

Installing

Download and extract the source code from the dist/ directory. inside the code directory you can install by simply running

python setup.py install

Command line usage

subscenery_run --help

Usage

from subscenery.scrapper import SubSceneScrapper

movie_name = 'A.United.Kingdom.2016.720p.BluRay.x264-[YTS.AG].mp4'
# initialize scrapper
scrapper = SubSceneScrapper(movie_name, is_filename=True)
# get subtitles
scrapper.get_subtitles()
# get best match subtitle for language
best_match = scrapper.get_best_match_subtitle('English')
# download subtitle to current path
scrapper.download_subtitle_to_path(best_match, '')

About

A subscene.com website scrapper written in python, that outputs a nicely formatted objects for movie/series subtitles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages