INNER CODE UNIT · Python

_parse_args

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

    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()}",
        )
        parser.add_argument(
            "--list-transcripts",
            action="store_const",
            const=True,
            default=False,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…