Skip to content

A logseq plugin for downloading youtube captions and subtitles from videos

License

Notifications You must be signed in to change notification settings

briansunter/logseq-get-youtube-captions

Repository files navigation

logseq-get-youtube-captions

Status GitHub Issues GitHub Pull Requests License


A plugin for downloading Youtube captions and subtitles from inside logseq

Usage

Just type /get-youtube-captions in a block or select get-youtube-captions from the block menu.

It finds the first youtube video in the block and downloads the captions.

Works with embedded {{video }} links and the different youtube video link formats.

It just inserts a big block of text in one block for now, but I plan to let users customize this more in future updates, like breaking the text up into smaller chunks based on timestamp.

It supports setting the caption language to download. It will display an error if the desired captions language is not available.

Demo

Demo

Summarize

Summarize

I highly recommend combining this with my logseq GPT3 OpenAI plugin for advanced text summarization, like getting the top 5 main points of a long video. There is a limit to the amount of text you can send, so you may need to break it up into chunks. Also, OpenAI is a bit expensive if you send it a lot of text. See if the logseq-summarizer works for you as well. The summaries are simpler but the tool is free (unlike openai).

Customize captions language to download

Settings

Download captions in your language

Language

📝 Table of Contents

About

logseq-get-youtube-captions allows users to download captions from YouTube video within the LogSeq editor.

Select a block with a youtube video link or embed in it.

Then run the open get-youtube-captions command via the slash or block menu. The plugin will download the captions and save them underneath the block.

Getting Started

  • Download the plugin in the Logseq marketplace by searching for get-youtube-captions

FAQ

I'm getting an error

Check the console for errors. There may not be subtitles available in a given language.

Installing

npm i

Running the tests

  • Add Tests
  • Split up captions

Build

npm run build

💻 Local Development

This enables the local dev server with hot reloading, via the logseq vite plugin.

npm i
npm run dev

Prod build

First run npm i and npm run build

Open LogSeq

Go to Settings > Turn on Developer Mode

This will bring up the "Plugins" entry in three dots more menu list on the top right of the head bar. Go to Plugins page, and you will get a button with the Load unpacked plugin label. Select the root folder of this plugin repo.

🚀 Deployment

Creates a build using semantic release when a commit is pushed with a smart commit message.

Built Using

  • LogSeq - Privacy-first, open-source knowledge base that works on top of local plain-text Markdown and Org-mode files.
  • Vite - Next Generation Frontend Tooling

Contributing

Do you have a bug or idea? I would love to hear from you! Open a Github issue here.

PRs welcome. Open an issue to discuss first if possible.

Authors

Follow me on Twitter!: @bsunter