Convert YouTube videos to Anki decks.
Project description
youtube-to-anki
Converts a YouTube video into Anki Cards.
Takes a YouTube video with audio in your target language and transcript (subtitles) in your native language and converts it into an .apkg
file that can easily be imported into Anki. The Anki cards have the target language audio on the front and the native language transcript on the back. I hope this helps improving your listening comprehension.
Installation
PyPI
pip install youtube-to-anki
Note: When you install this package though pip
, you will have to manually install ffmpeg afterwards. One easy way to accomplish this is with conda.
conda create --name youtube-to-anki ffmpeg pip
conda activate youtube-to-anki
pip install youtube-to-anki
youtube-to-anki --help
Conda
Coming soon ...
Usage
CLI
You can use the command like interface like this:
youtube-to-anki <video_id>
Where <video_id>
can be extracted from a YouTube URL like this:
https://www.youtube.com/watch?v=<video_id>
There are some CLI options you can provide, for example for choosing the transcript language. Check youtube-to-anki --help
for details.
Importing to Anki
youtube-to-anki produces an .apkg
file, which can easily be imported into Anki. In Anki, just click "File" -> "Import".
Listing Available Transcripts
youtube-to-anki calls youtube-transcript-api for requesting the video transcripts. If you're unsure what value to provide to the --transcript-language
option, you can list all available languages with youtube_transcript_api --list-transcripts <video_id>
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file youtube-to-anki-0.1.3.tar.gz
.
File metadata
- Download URL: youtube-to-anki-0.1.3.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.9.4 Linux/5.4.0-1043-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3491769992ca9f2dbce76b0105c47f153a57c84b4fa92d0dffe538abab212bdf |
|
MD5 | 10d0dd8415c027b34e3de2add7a9c611 |
|
BLAKE2b-256 | 3ec58f57a2d34fb1f84f326bc7e8be99af5fce402522892e9878fd48e4068c39 |
File details
Details for the file youtube_to_anki-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: youtube_to_anki-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.9.4 Linux/5.4.0-1043-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f9d58937039f3bb324146af513945d8b18f3b2c5f1267f7fbd9e4422c5e1c3b |
|
MD5 | 05f1786cf54012a2dc5ff65fa2b57f7e |
|
BLAKE2b-256 | 1d90f6d8738739aa10f12d13169359fc642de0264dd31f680335d93d2ac20e09 |