GithubHelp home page GithubHelp logo

yoshimasu666 / logseq-get-youtube-captions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from briansunter/logseq-get-youtube-captions

0.0 0.0 0.0 36.34 MB

A logseq plugin for downloading youtube captions and subtitles from videos

License: MIT License

JavaScript 17.64% TypeScript 67.85% CSS 5.19% HTML 9.32%

logseq-get-youtube-captions's Introduction

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

Put newlines between Captions

This is a checkbox option in the settings. It might be better for some situations. Each caption line in the video is on it's own line in this mode.

newline

๐Ÿ“ 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

logseq-get-youtube-captions's People

Contributors

briansunter avatar semantic-release-bot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.