This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tool.poetry] | |
name = "test-poetry1" | |
version = "0.1.0" | |
description = "" | |
authors = ["whoizit <whoami@systemli.org>"] | |
[tool.poetry.dependencies] | |
python = "^3.8" | |
django = "^3.0.6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from youtube_transcript_api import YouTubeTranscriptApi as ytta | |
from youtube_transcript_api.formatters import TextFormatter as tf | |
import sys | |
yt_id = ( | |
sys.argv[1] | |
.removeprefix('https://www.youtube.com/watch?v=') | |
.removeprefix('https://youtu.be/') | |
) |
OlderNewer