Skip to content

wedsa5/tvdb-v4-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tvdb-v4-python

This is the official tvdb api v4 python package

Installation

pip install tvdb_v4_official

Getting Started

some projects require a user supplied pin as well as an apikey

import tvdb_v4_official

tvdb = tvdb_v4_official.TVDB("APIKEY") # tvdb = tvdb_v4_official.TVDB("APIKEY", pin="YOUR PIN HERE")

# fetching a page of series
tvdb.get_all_series(0)

# fetching a series
tvdb.get_series(121361)

# fetching a seasons episodes
seasons = tvdb.get_series_extended(121361)["seasons"]
season_one = None
for season in seasons:
    if season["number"] == 1:
        season_one = season
episodes = tvdb.get_season_extended(season_one["id"])["episodes"]

# fetching a movie
tvdb.get_movie(31) # avengers

# fetching movie's characters
characters = tvdb.get_movie_extended(31)["characters"]

# fetching a person record
person = tvdb.get_person_extended(characters[0]["peopleId"])

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%