Skip to content

dobladov/youtube2Anki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firefox Chrome Edge License YouTube PayPal

Youtube2Anki Logo

Web Extension to convert Youtube transcripts to Anki cards.

⚠️ If AnkiConnect does not work add "*" to your AnkiConnect configuration in Anki -> Tools -> Add-ons -> AnkiConnect -> Config.

"webCorsOriginList": [
    "*",
    "http://localhost"
]

This extension allows to download the transcript of a YouTube video to a csv that can be imported into Anki or directly send the cards to Anki using AnkiConnect, allowing to use the original audio/video of the current sentence and without having to download the original media.

example

Anki Card

Install

Install the extension for your prefered browser

Send to Anki [AnkiConnect]

Install AnkiConnect to add the cards directly to a deck, once the plugin is installed, keep Anki open and press the Send button from the extension.

How to install Anki Connect

YouTube

There is no need for the following steps.

Instructions for export CSV

In Anki, create a new note. Tools -> Manage Note Types

Manage Notes

Add a new card with this fields

Note Fields

Edit the card fields of the new note created with the correspondent code.

Front Template

{{title}}
<br>

<span>{{prevText}}</span>
<br>

{{text}}
<br>

<iframe
    width="560"
    height="315"
    src="https://www.youtube.com/embed/{{id}}?start={{startSeconds}}&end={{endSeconds}}&autoplay=1"
    frameborder=0
       autoplay=1
/>

<br>
<span>{{time}} - {{nextTime}}</span>
<br>
<span>{{nextText}}</span>

Styling

.card {
 font-family: futura-pt,sans-serif,sans-serif;
 font-size: 20px;
 text-align: center;
 color: black;
 background-color: #e9e9e9;
}

span {
 font-size: 0.9rem;
 color: #3c3c3c;
}

Back Template

{{FrontSide}}

<hr id=answer>

Card Template

Now after exporting the cards using by using the extension icon, is possible to import the new cards using the new note type.

Please be sure to open the transcript of the video before pressing the export button, since the transcript is not created until the user opens it, this step is required.

File -> Import

Import