{"id":13688572,"url":"https://github.com/katspaugh/youtube-flashcards","last_synced_at":"2026-03-16T22:32:41.051Z","repository":{"id":51681451,"uuid":"59644469","full_name":"katspaugh/youtube-flashcards","owner":"katspaugh","description":"Extract screenshots \u0026 audio clips from YouTube videos into Anki cards","archived":false,"fork":false,"pushed_at":"2022-01-04T22:56:13.000Z","size":18,"stargazers_count":65,"open_issues_count":0,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-29T16:02:52.736Z","etag":null,"topics":["language-learning"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/katspaugh.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}},"created_at":"2016-05-25T08:19:31.000Z","updated_at":"2024-10-07T11:23:27.000Z","dependencies_parsed_at":"2022-08-22T05:20:27.037Z","dependency_job_id":null,"html_url":"https://github.com/katspaugh/youtube-flashcards","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katspaugh%2Fyoutube-flashcards","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katspaugh%2Fyoutube-flashcards/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katspaugh%2Fyoutube-flashcards/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katspaugh%2Fyoutube-flashcards/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/katspaugh","download_url":"https://codeload.github.com/katspaugh/youtube-flashcards/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223779728,"owners_count":17201287,"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":["language-learning"],"created_at":"2024-08-02T15:01:16.811Z","updated_at":"2025-10-11T18:38:42.330Z","avatar_url":"https://github.com/katspaugh.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# YouTube Flashcards\n\nExtract screenshots \u0026 audio clips from YouTube videos into Anki cards.\n\n### 📖 [使い方（日本語で）](http://rs.luminousspice.com/anki-card-from-youtobe-caption/)\n\n## Installation\nYou'll need to install `youtube-dl` and `ffmpeg`:\n\n```\nbrew install youtube-dl ffmpeg\n```\n\n## Usage\n\n### Download\nFirst, download a video that you know has subtitles in your target language:\n\n```\n./download.sh 'https://www.youtube.com/watch?v=5P3Tb_v-KnY'\n```\n\nThat will download the video and subs into the `./downloads` folder.\n\n### Extract\nNext, extract the cards (it may take a while):\n\n```\n./extract.sh downloads/Frau_Holle.mp4 downloads/Frau_Holle.de.vtt downloads/Frau_Holle.en.vtt \u003e cards.tsv\n```\n\nThe parameters are:\n * The video file\n * The subtitles file in your target language\n * Optionally: the subtitles file in your native language\n\n### Import\nFinally, import the cards into Anki:\n * Copy the audio and image files from `./output` to your Anki media collection folder.\n * Import the cards TSV into a deck. There are 4 fields in the TSV: original subtitle, translated subtitle, image and audio.\n\n\u003cimg width=\"635\" alt=\"screen shot 2016-05-25 at 10 15 31\" src=\"https://cloud.githubusercontent.com/assets/381895/15532887/455f63d6-2262-11e6-8533-8db8fad228a7.png\"\u003e\n\n## Offline videos\nYou can also create cards from local files other than from YouTube. The script requires that the subtitles are in the VTT format. To convert from SRT and other formats, use http://www.webvtt.org/ or https://github.com/nwoltman/srt-to-vtt-converter.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatspaugh%2Fyoutube-flashcards","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkatspaugh%2Fyoutube-flashcards","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatspaugh%2Fyoutube-flashcards/lists"}