Python client for The TVDB REST API
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
Johann Schmitz 7dfc11ab51
Add Jenkinsfile and update sonar-project.properties
vor 2 Jahren
tests Respect timezone when converting datetime objects to epoch vor 2 Jahren
tvdbrest Respect timezone when converting datetime objects to epoch vor 2 Jahren
.gitignore Implemented first api calls vor 2 Jahren
.travis.yml Drop pypy vor 2 Jahren
Jenkinsfile Add Jenkinsfile and update sonar-project.properties vor 2 Jahren
LICENSE.txt Initial commit vor 2 Jahren
Makefile Update requirements_dev and Makefile vor 2 Jahren
README.md Add badges to README.md vor 2 Jahren
requirements.txt Implemented first api calls vor 2 Jahren
requirements_dev.txt Update requirements_dev and Makefile vor 2 Jahren
setup.py Add setup.py vor 2 Jahren
sonar-project.properties Add Jenkinsfile and update sonar-project.properties vor 2 Jahren

README.md

tvdb-rest

Build Status Coverage Status

tvdb-rest is a client implementation of the TVDB REST API. This library does not support the “old” XML api!

tvdb-rest supports Python 3.4+. Python 2.7 may work, but isn’t supported.

Usage

To use the REST API, you need an TVDB API key. See http://thetvdb.com/wiki/index.php?title=Programmers_API on how to obtain one.

from tvdbrest.client import TVDB
api = TVDB("myusername", "myuserkey", "myapikey")

for language in api.languages():
    print(language)

# search for series
search_results = api.search(name='The Simpsons')
for series in search_results:
    print(series)

# fetch series by id
simpsons = api.series(71663)

# access actors of series object
for actor in simpsons.actors():
    print("%s as %s" % (actor, ', '.join(actor.role.split('|'))))

# list all episodes for series (pagination handled automatically)
for episode in simpsons.episodes():
    print(episode)

License

See LICENSE.txt