Giter Club home page Giter Club logo

youtube-chapter-generator's Introduction

The idea

Extract possible chapters from the subtitles of a video.

How to use it

  1. Install the dependencies of requirements.txt
  2. Setup OPENAI_API_KEY environment variable with your key
export OPENAI_API_KEY=your_key
  1. Run the code:
python getChapters.py https://www.youtube.com/watch?v=i_LwzRVP7bg en

You must pass the language of the subtitles as the second argument.

Expected output

{"start":"00:00:00","end":"00:04:50","topic":"Introduction to Machine Learning and Using the UCI Machine Learning Repository"}
{"start":"00:04:23","end":"00:09:39","topic":"Introduction to Machine Learning"}
{"start":"00:09:14","end":"00:14:06","topic":"Introduction to Machine Learning and its Types"}
{"start":"00:13:43","end":"00:18:35","topic":"Types of Data and Predictions in Supervised Learning"}
{"start":"00:18:14","end":"00:23:10","topic":"Supervised Learning and Model Training"}
{"start":"00:22:47","end":"00:27:41","topic":"Training, Validation, and Testing Data Sets and Loss in Machine Learning"}
{"start":"00:27:19","end":"00:32:27","topic":"Loss Functions and Performance Measures"}
{"start":"00:32:09","end":"00:37:28","topic":"Data visualization and data set splitting"}

Author

Ronaldo Richieri

https://github.com/richieri

youtube-chapter-generator's People

Contributors

richieri avatar

Watchers

 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.