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".
To use this API, you need BeautifulSoup installed.
Then, you can start using the EZTV API.
Start by importing the API file
from eztvAPI import *
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 "games of thrones" ...
# 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]
# specific season
episodes = test_api.season(3)
for episode in episodes:
# will print the magnet link for all episodes
print episodes[episode]
# specific episode
print test_api.episode(3, 10)
Feel free to give feedbacks and ask for new features.
API released under license GLPv3.