alexmercerind / youtube-search-python

🔎 Search for YouTube videos, channels & playlists. Get 🎞 video & 📑 playlist info using link. Get search suggestions. WITHOUT YouTube Data API v3.
MIT License
729 stars 160 forks source link

Add Transcript & Channel class #165

Closed mytja closed 2 years ago

mytja commented 2 years ago

So, YouTube has added transcription (slovenian "Prepis"). Now we have Transcription classes with really minimal code. image

Have added tests, but adding you as reviewers as you never know what you can find :wink:.

mytja commented 2 years ago
  • If subtitles are disabled in the video, it raises the Failed to extract key exception. It would be nice to add a proper way to handle this. Maybe just return an empty dict?

This I will certainly fix, but I haven't got an example of video like this.

  • Now it returns transcriptions in English. How about adding a language selection option?

Will have a look.

raitonoberu commented 2 years ago

I haven't got an example of video like this.

Mostly various music videos (not sure how it works): https://www.youtube.com/watch?v=hzpt3fQjY9U

mytja commented 2 years ago

Done. Now user can retrieve different languages using params parameter, which I give them for specific language.

mytja commented 2 years ago

I've also added Channel class, which displays channel info - Resolves #164

mytja commented 2 years ago

Will merge this tomorrow