INNER CODE UNIT · Python

_get_version

jdepoix/youtube-transcript-api · youtube_transcript_api/_cli.py:95

    def _get_version(self):
        try:
            return version("youtube-transcript-api")
        except PackageNotFoundError:
            return "unknown"

    def _parse_args(self):
        parser = argparse.ArgumentParser(
            description=(
                "This is a python API which allows you to get the transcripts/subtitles for a given YouTube video. "
                "It also works for automatically generated subtitles and it does not require a headless browser, like "
                "other selenium based solutions do!"
            )
        )
        parser.add_argument(
            "--version",
            action="version",
            version=f"%(prog)s, version {self._get_version()}",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…