No release in over a year
A gem to get captions of a youtube video
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

youtube-captions

Install

gem install youtube-captions

or add to gemfile

gem "youtube-captions"

Usage

# "id" can be video url
video = YoutubeCaptions::Video.new(id: "abc123")

Captions with default language

=> video.captions
=> [
  {
    "__content__" => "Welcome to Ruby",
    "start" => "0.16",
    "dur" => "3.92"
  }
  ...
]

Captions with specific language (must be available)

=> video.captions(lang: "es")
=> [
  {
    "__content__" => "Bienvenido a Ruby",
    "start" => "0.16",
    "dur" => "3.92"
  }
  ...
]

Available languages

=> video.available_langs
=> ["es", "en", "pt"]

Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!