The following command will install GameOfThrones TVD plugin (and TVD if it is missing)
pip install TVDGameOfThrones
The following command will download all resources for Game Of Thrones into /tmp/
directory.
python -m tvd.create metadata /tmp/ GameOfThrones
Initialize GameOfThrones TVD plugin
from tvd import GameOfThrones
gameOfThrones = GameOfThrones('/tmp/')
IN CASE YOU USE 'outline_www' RESOURCES, PLEASE CONSIDER CITING: @misc{wikia, title = {{Game of Thrones Wiki}}, howpublished = \url{http://gameofthrones.wikia.com/} } IN CASE YOU USE 'transcript' RESOURCES, PLEASE CONSIDER CITING: @misc{foreverdreaming, title = {{Forever Dreaming}}, howpublished = \url{http://foreverdreaming.org/} } IN CASE YOU USE 'transcript_www' RESOURCES, PLEASE CONSIDER CITING: @misc{foreverdreaming, title = {{Forever Dreaming}}, howpublished = \url{http://foreverdreaming.org/} }
Get first episode
episode = gameOfThrones.episodes[0]
episode
Episode(series='GameOfThrones', season=1, episode=1)
Provides:
scenes = gameOfThrones.get_resource('scenes', episode)
scenes
outline_www = gameOfThrones.get_resource('outline_www', episode)
outline_www
Source: http://foreverdreaming.org/
Provides:
Does not provide timestamps.
transcript = gameOfThrones.get_resource('transcript', episode)
transcript
Source: LIMSI
Provides:
transcript_aligned = gameOfThrones.get_resource('transcript_aligned', episode)
transcript_aligned.crop(180, 190)