Skip to content

Fetch transcript from a youtube video but using axios for react native

Notifications You must be signed in to change notification settings

arionrefat/youtube-transcript-axios

 
 

Repository files navigation

youtube-transcript-axios

This is a fork of youtube-transcript package which replaces phin with axios. Phin causes issue in react-native as react-native doesn't include nodejs standard library

npm version

I wanted to extract a transcript from a youtube video but there was only a python script so I created this to do it in node. This package use unofficial YTB API so it can be broken over the time if no update appears.

Installation

$ npm i youtube-transcript-axios

or

$ yarn add youtube-transcript-axios

Usage

import { YoutubeTranscript } from 'youtube-transcript-axios';

YoutubeTranscript.fetchTranscript('videoId or URL').then(console.log);

Methods

  • fetchTranscript(videoId: string [,options: TranscriptConfig]): Promise<TranscriptResponse[]>;

License

MIT Licensed

About

Fetch transcript from a youtube video but using axios for react native

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 84.5%
  • JavaScript 15.5%