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>.
Release files for youtube-to-anki 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| youtube-to-anki-0.1.3.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| youtube_to_anki-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.2 kB
Release files / youtube-to-anki-0.1.3.tar.gz
| Download URL | youtube-to-anki-0.1.3.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3491769992ca9f2dbce76b0105c47f153a57c84b4fa92d0dffe538abab212bdf
|
|
BLAKE2b-256 checksum How to use checksums |
3ec58f57a2d34fb1f84f326bc7e8be99af5fce402522892e9878fd48e4068c39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.9.4 Linux/5.4.0-1043-azure
|
Release files / youtube_to_anki-0.1.3-py3-none-any.whl
| Download URL | youtube_to_anki-0.1.3-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f9d58937039f3bb324146af513945d8b18f3b2c5f1267f7fbd9e4422c5e1c3b
|
|
BLAKE2b-256 checksum How to use checksums |
1d90f6d8738739aa10f12d13169359fc642de0264dd31f680335d93d2ac20e09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.9.4 Linux/5.4.0-1043-azure
|