API-EZTV.it icon indicating copy to clipboard operation
API-EZTV.it copied to clipboard

(Unofficial) Python API for the torrent website EZTV.it

EZTV API

This is the (unofficial) Python API for EZTV.it

Using this code, you can manage to get the information regarding any TV Show which is listed on EZTV.it See how to use it thanks to the file "APIExample.py".

Installation

To use this API, you need BeautifulSoup installed.
Then, you can start using the EZTV API.

Usage

Start by importing the API file

from eztv_api import EztvAPI

Then, you can search for a specific TV Show

test_api = EztvAPI().tv_show('Game Of Thrones')

The search is not case sensitive so : "Game Of Thrones" equals "GaMe oF ThRoNeS" equals "game of thrones" ...

Iterate on all the seasons :

# get all the seasons from Game Of Thrones
seasons = test_api.seasons()
for season in seasons:
    for episode in seasons[season]:
        # will print the magnet link of all episodes, in all seasons
        print seasons[season][episode]

Iterate on a specific season

# specific season
episodes = test_api.season(3)
for episode in episodes:
    # will print the magnet link for all episodes
    print episodes[episode]

Get a specific episode

# specific episode
print test_api.episode(3, 10)

Conclusion (& License)

Feel free to give feedbacks and ask for new features.

API released under license GLPv3.