youtube-transcript
Installation
SKILL.md
YouTube transcript
Get the spoken text of a YouTube video from the Subtext API.
Setup
The key is read from $SUBTEXT_API_KEY (it starts with stx_). Never print the key.
If it is not set, ask the user once: do they have a Subtext key? If they do, have them set SUBTEXT_API_KEY themselves (keys are on https://youtubevideototranscript.com/account). If they do not, offer to create a free account for them; it takes their email address and a code from their mail, and no browser.
- Ask for their email address and send it:
curl -sS "https://youtubevideototranscript.com/api/v1/signup" -H "Content-Type: application/json" \
-d '{"email": "USER_EMAIL"}'
The answer is 202 with request. Keep it, do not show it, and tell the user: "I sent a 6-digit code to USER_EMAIL. Please tell me the code." It works for 10 minutes.