GithubHelp home page GithubHelp logo

ercpe / tvdb-rest Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 55 KB

Python client implementation for The TVDB REST API

Home Page: https://git.ercpe.de/ercpe/tvdb-rest

License: GNU General Public License v3.0

Makefile 2.09% Python 97.91%
tvdb api rest

tvdb-rest's Introduction

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

tvdb-rest's People

Contributors

ercpe avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

leaiannotti

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.