GithubHelp home page GithubHelp logo

youtube-free-transcript's Introduction

Transcribing a Youtube video with a given URL

WHAT DOES IT DO?

Retrieves automatically generated and/or manually uploaded transcript of a Youtube Video. Polishes raw transcript
with Spacy's en-core-web-lg-model, by inserting punctuation marks wherever necessary as well as capitalizing the start of each sentence.

IS IT ANY GOOD?

YES! Most words are grammatically correct with a very few spelling errors. However, you might see some punctuation errors such as double dots, double commas but it is bearable.Considering this is a free service, one can turn a blind eye to the occasional punctuation errors, in my opinion.

ANY RECOMMENDATIONS?

If you're looking for the best YouTube video or any kind of audio transcription, I recommend checking out AssemblyAI. It costs $0.9 per hour.

Install:

Make sure you have downloaded the folder and changed to the folder directory in the command line. Install the required dependencies by running the following command:

cd youtube-free-api
conda create -n youtube-free-api python=3.9
pip install -r requirements.txt

Libraries Used:

Usage:

While staying in your project directory, run the following command and type in the URL of the video you want to transcribe:

$ python transcribe.py --url "urlOfTheVideo"

**BAM!**

It takes only a few seconds to retrieve the transcript of the video.

Costs: Free

Transcripts

Transcripts are saved in a folder named transripts in the project folder as an .txt file.ใ€€
The title of each transcript is the name of the YouTube video.

Warnings

youtube-transcript-api is not officicially documented and is not guaranteed to work in case Youtube changes access restrictions or updates the API. Refer to youtube-transcript-api for more information.

Further usages:

Translate transcript

YouTube has a feature which allows you to automatically translate subtitles. This module also makes it possible to access this feature. To do so Transcript objects provide a translate() method, which returns a new translated Transcript object:

transcript = transcript_list.find_transcript(['en'])
translated_transcript = transcript.translate('de')
print(translated_transcript.fetch())

List available transcripts

If you want to list all transcripts which are available for a given video you can call:

transcript_list = YouTubeTranscriptApi.list_transcripts(video_id)

youtube-free-transcript's People

Contributors

vocdex avatar

Stargazers

 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.