A plugin for downloading Youtube captions and subtitles from inside logseq
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.
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).
- About
- Examples with GIFs
- Getting Started
- Deployment
- Usage
- Built Using
- TODO
- Contributing
- Authors
- Acknowledgments
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.
- Download the plugin in the Logseq marketplace by searching for
get-youtube-captions
Check the console for errors. There may not be subtitles available in a given language.
npm i
- Add Tests
- Split up captions
npm run build
This enables the local dev server with hot reloading, via the logseq vite plugin.
npm i
npm run dev
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.
Creates a build using semantic release when a commit is pushed with a smart commit message.
- 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
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.
- @briansunter - Author