MCPcopy
hub / github.com/jdepoix/youtube-transcript-api / load

Method load

youtube_transcript_api/formatters.py:199–208  ·  view source on GitHub ↗

Loads the Formatter for the given formatter type. :param formatter_type: :return: Formatter object

(self, formatter_type: str = "pretty")

Source from the content-addressed store, hash-verified

197 )
198
199 def load(self, formatter_type: str = "pretty") -> Formatter:
200 """
201 Loads the Formatter for the given formatter type.
202
203 :param formatter_type:
204 :return: Formatter object
205 """
206 if formatter_type not in FormatterLoader.TYPES.keys():
207 raise FormatterLoader.UnknownFormatterType(formatter_type)
208 return FormatterLoader.TYPES[formatter_type]()

Calls

no outgoing calls