Drive an installed LaRuche App through its declared actions, never its files.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Fetch the transcript of a YouTube video as text or JSON.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
Turn a YouTube URL into the words that were said, so you can summarise, quote or search them. The transcript comes from YouTube's own caption track, not from audio: it costs nothing, takes a second, and exists for most videos with more than a handful of views.
Use it whenever the user points at a video and asks what is in it. Do not try to watch the video, do not download the audio, and do not answer from the title.
uv pip install youtube-transcript-api
Verify, from the skill folder:
python scripts/fetch_transcript.py "dQw4w9WgXcQ" --list
Success prints one line per available caption track: language code, language name, and
whether it is manual or auto-generated. If it prints
youtube-transcript-api is not installed, run the install above and retry. That install
is your job, not a question for the user.
Get the video id right. The bundled script accepts every YouTube URL shape
(watch?v=, youtu.be/, /shorts/, /live/, /embed/, /v/) and a bare
11-character id, so pass whatever the user gave you, unmodified and quoted.
Check what languages exist, when the video is not obviously English:
python scripts/fetch_transcript.py "<URL>" --list.
Fetch it. With no --language, the script takes the FIRST track the video
actually has, rather than assuming English and failing on a French-only video.
python scripts/fetch_transcript.py "<URL>" --text-only
python scripts/fetch_transcript.py "<URL>" --text-only --timestamps
python scripts/fetch_transcript.py "<URL>"
python scripts/fetch_transcript.py "<URL>" --language fr,en
Check the exit code, not the shape of the output. Every failure exits non-zero with one line on stderr. If stdout is empty, read stderr before concluding anything.
Use the text. For a long video, write it to a file with file_write before
summarising, so a context compaction does not take the transcript with it.
Run all of these through shell_exec, from skills/youtube_transcribe/, or with the
absolute path to the script.
| Invocation | stdout |
|---|---|
--text-only | one paragraph, caption line breaks collapsed |
--text-only --timestamps | M:SS text, exactly one line per segment |
| default | JSON: video_id, segment_count, duration, full_text |
--timestamps without --text-only | the JSON above plus timestamped_text |
--list | three tab-separated columns: code, language, manual or auto-generated |
--list tells you which kind you
got. Before quoting a figure or a proper noun from an auto-generated track, say that it
came from automatic captions, or verify it elsewhere.UnicodeEncodeError after all the work is done.Exit 2, the owner disabled captions. There is no workaround at this layer. Tell the
user the video has captions turned off, and offer to work from the description or from a
search about the video instead.
Exit 3, private, deleted, or region-locked. Re-read the URL you were given; a
truncated id is the usual cause. If the URL is right, the video is not reachable from
here.
Exit 5, no transcript in <codes>. Your --language list matches nothing. Run
--list and use a code from the output. Codes are specific: pt-BR is not pt.
Exit 4, anything else from the API. Usually YouTube rate limiting or blocking the request from this IP. Wait and retry once. If it persists, say so rather than looping.
ModuleNotFoundError despite the install. The install went to a different interpreter
than the one running the script. Run python -m pip install youtube-transcript-api with
the same python you invoke the script with.
아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
Drive an installed LaRuche App through its declared actions, never its files.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Find academic papers on arXiv, with citation counts and BibTeX.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Render text or an image as ASCII art for terminal-friendly output.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Track RSS/Atom feeds and blogs via blogwatcher-cli.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Drive a real web browser: navigate, read, find, click, fill, screenshot
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Measure a codebase: lines of code, language mix, and symbol lookups.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.