{"id":26750994,"url":"https://github.com/kafkasl/yt2transcript","last_synced_at":"2025-03-28T12:15:51.546Z","repository":{"id":284580522,"uuid":"955393952","full_name":"kafkasl/yt2transcript","owner":"kafkasl","description":"Extract youtube transcripts in text or json format to use as context in LLMs.","archived":false,"fork":false,"pushed_at":"2025-03-26T15:41:28.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T16:35:51.513Z","etag":null,"topics":["llm-con","transcript","youtube"],"latest_commit_sha":null,"homepage":" https://yt2transcript.justreadthe.info","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kafkasl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-26T15:12:06.000Z","updated_at":"2025-03-26T15:47:53.000Z","dependencies_parsed_at":"2025-03-26T16:47:00.145Z","dependency_job_id":null,"html_url":"https://github.com/kafkasl/yt2transcript","commit_stats":null,"previous_names":["kafkasl/yt2transcript"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kafkasl%2Fyt2transcript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kafkasl%2Fyt2transcript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kafkasl%2Fyt2transcript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kafkasl%2Fyt2transcript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kafkasl","download_url":"https://codeload.github.com/kafkasl/yt2transcript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246026111,"owners_count":20711581,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["llm-con","transcript","youtube"],"created_at":"2025-03-28T12:15:50.646Z","updated_at":"2025-03-28T12:15:51.539Z","avatar_url":"https://github.com/kafkasl.png","language":"Python","readme":"# YouTube Transcript Extractor\n\nA simple tool to extract transcripts from YouTube videos in plain text or JSON format using the [youtube-transcript-api](https://github.com/jdepoix/youtube-transcript-api).\n\n## Installation\n\n### Using Make\n\n```bash\nmake install\n```\n\n### Using Just (Alternative)\n\nIf you prefer to use [Just](https://github.com/casey/just) as a command runner (simpler parameter passing):\n\n```bash\n# Install Just if not already installed\n# On macOS:\nbrew install just\n\n# On Linux:\n# Follow instructions at https://github.com/casey/just#installation\n\n# Then install dependencies\njust install\n```\n\n## Usage\n\n### Extract transcript as plain text\n\n```bash\n# Using make:\nmake transcript-txt ID=lRyGIzW9d9k\n\n# Or using just (easier parameter passing):\njust transcript-txt lRyGIzW9d9k\n\n# Or directly:\n./yt_transcript.py \"lRyGIzW9d9k\" -f txt -o output.txt\n```\n\n### Extract transcript as JSON\n\n```bash\n# Using make:\nmake transcript-json ID=lRyGIzW9d9k\n\n# Or using just:\njust transcript-json lRyGIzW9d9k\n\n# Or directly:\n./yt_transcript.py \"lRyGIzW9d9k\" -f json -o output.json\n```\n\n### Using custom language preferences\n\nJust makes it easy to pass multiple parameters:\n\n```bash\njust transcript lRyGIzW9d9k json \"es en\"\n```\n\nThis extracts the transcript in JSON format, preferring Spanish but falling back to English.\n\n### Additional options\n\n```\nusage: yt_transcript.py [-h] [-o OUTPUT] [-f {txt,json}] [-l LANGUAGES [LANGUAGES ...]] video\n\nYouTube transcript extractor\n\npositional arguments:\n  video                 YouTube video URL or ID\n\noptions:\n  -h, --help            show this help message and exit\n  -o OUTPUT, --output OUTPUT\n                        Output file (default: video_id.txt)\n  -f {txt,json}, --format {txt,json}\n                        Output format (txt or json, default: txt)\n  -l LANGUAGES [LANGUAGES ...], --languages LANGUAGES [LANGUAGES ...]\n                        Preferred languages (default: en)\n```\n\n## Examples\n\nExtract transcript in English:\n```bash\n./yt_transcript.py \"https://www.youtube.com/watch?v=lRyGIzW9d9k\" -l en\n```\n\nExtract transcript in Spanish, falling back to English if Spanish isn't available:\n```bash\n./yt_transcript.py \"lRyGIzW9d9k\" -l es en -f json\n```\n\n## Web Interface\n\nThis project now includes a web interface for extracting transcripts directly in your browser.\n\n### Running the Web Server\n\n```bash\n# Using just:\njust serve\n\n# Or directly:\npython main.py\n```\n\nThe web server will start on http://localhost:8000. Open this URL in your browser to access the YouTube Transcript Extractor web interface.\n\n### Features\n\n- Simple form interface to enter YouTube URLs or video IDs\n- Select output format (Text or JSON)\n- Copy button for easy transcript copying\n- Responsive design ","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkafkasl%2Fyt2transcript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkafkasl%2Fyt2transcript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkafkasl%2Fyt2transcript/lists"}