this module provide unofficial subscene.com api for python
Project description
Browse and Download from subscene.com with just a few lines of python
SubtitleAPI is a python package provide direct access to subscene.com content using scraping techniques! You can search for any subtitle you want to download , also add query filters to remove unwanted content!
Intsall SubtitleAPI using pip
pip install SubtitleAPI
Get Movie Subtitles:
from subtitleAPI import SubtitleAPI
subscene = SubtitleAPI('english','farsi/persian') # pass languages you want to have in results
subscene.movie(title='Tenet',year=2020,release_type='bluray')
subscene.download()
search IMdB ID
subscene.movie(imdb_id='6723592',release_type='bluray')
search for TV Shows
subscene.tvshow(title='Game of Thrones',release_type='bluray',season=2,episode=3)
# or
subscene.tvshow(imdb_id='0944947',release_type='bluray',season=2,episode=3)
export zip files After download is Finished !
this method extract all zip files.
subscene.download().extract()
some useful properties:
subscene.subtitles # all subtitle objects in memory
subscene.zip_files # downloaded zip files!
subscene.all_subtitle_files # all extracted subtitle files
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
subtitle-api-0.0.1.tar.gz
(5.7 kB
view hashes)
Built Distribution
Close
Hashes for subtitle_api-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 666b942eb771d50a6e7c0aaed165340a743ab671da71b6a46d970a8db3c47660 |
|
MD5 | 865e1483e9179aae17bf7d05811adecd |
|
BLAKE2b-256 | c319a64fa315b147c583bc664d553b90dc273525285d67a5e7d4c9f700fa846a |