Metadata-Version: 2.1
Name: subtitle-api
Version: 0.0.1
Summary: this module provide unofficial subscene.com api for python
Home-page: https://github.com/pypa/sampleproject
Author: Erfan Shekari
Author-email: erfan.dp.co@gmail.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/pypa/sampleproject/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: IMDbPY (==2021.4.18)
Requires-Dist: beautifulsoup4 (==4.9.0)
Requires-Dist: lxml (==4.6.3)
Requires-Dist: requests (==2.23.0)

# 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
```


