{"id":29571678,"url":"https://github.com/redraw/llm-fragments-youtube","last_synced_at":"2025-09-07T07:33:20.807Z","repository":{"id":298988855,"uuid":"1001756690","full_name":"redraw/llm-fragments-youtube","owner":"redraw","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-14T18:00:19.000Z","size":51,"stargazers_count":32,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-01T06:13:46.567Z","etag":null,"topics":["llm","llm-fragments"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redraw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-06-14T00:47:34.000Z","updated_at":"2025-08-27T23:22:40.000Z","dependencies_parsed_at":"2025-06-14T02:32:39.873Z","dependency_job_id":null,"html_url":"https://github.com/redraw/llm-fragments-youtube","commit_stats":null,"previous_names":["redraw/llm-fragments-youtube"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/redraw/llm-fragments-youtube","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redraw%2Fllm-fragments-youtube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redraw%2Fllm-fragments-youtube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redraw%2Fllm-fragments-youtube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redraw%2Fllm-fragments-youtube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redraw","download_url":"https://codeload.github.com/redraw/llm-fragments-youtube/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redraw%2Fllm-fragments-youtube/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274010104,"owners_count":25206763,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","llm-fragments"],"created_at":"2025-07-19T04:07:13.258Z","updated_at":"2025-09-07T07:33:20.764Z","avatar_url":"https://github.com/redraw.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LLM YouTube Fragments Plugin\n\nA plugin for [Simon Willison's LLM tool](https://github.com/simonw/llm) that adds a `youtube` fragment loader to download and use YouTube video subtitles in your prompts.\n\n## Installation\n\n1. Make sure you have the LLM tool installed:\n   ```bash\n   pip install llm\n   ```\n\n2. Install this plugin:\n   ```bash\n   llm install llm-fragments-youtube\n   ```\n\n   This will automatically install all dependencies, including yt-dlp.\n\n## Usage\n\nYou can use the `youtube` or `yt` fragment in your LLM prompts to include subtitles from YouTube videos:\n\n```bash\n# Using a YouTube video ID\nllm -f youtube:dQw4w9WgXcQ \"summarize this video\"\n\n# You can also use the shorter 'yt' prefix\nllm -f yt:dQw4w9WgXcQ \"summarize this video\"\n\n# Continue chatting\nllm -c \"at which minute do they talk about ...\"\n\n# Language can also be specified\nllm -f youtube:es:dQw4w9WgXcQ \"resume el video\"\n\n# Using a full YouTube URL\nllm -f youtube:https://www.youtube.com/watch?v=dQw4w9WgXcQ \"summarize video\"\n```\n\n## Development\n\n### Running Tests\n\nTo run the tests, first install the package with test dependencies:\n\n```bash\npip install -e \".[test]\"\n```\n\nThen run the tests using pytest:\n\n```bash\npytest\n```\n\n## License\n\nBeerware\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredraw%2Fllm-fragments-youtube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredraw%2Fllm-fragments-youtube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredraw%2Fllm-fragments-youtube/lists"}