dobladov / youtube2Anki

Convert Youtube Transcripts to Anki cards

Home Page:https://chrome.google.com/webstore/detail/youtube2anki/boebbbjmbikafafhoelhdjeocceddngi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Convert Youtube Transcripts to Anki cards

https://chrome.google.com/webstore/detail/youtube2anki/boebbbjmbikafafhoelhdjeocceddngi

License:GNU General Public License v3.0


Languages

Language:JavaScript 96.3%Language:CSS 3.1%Language:HTML 0.6%