Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created the YouTube toolkit for the agents to utilise YouTube API. #20

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

sanyamjain0315
Copy link

Issue


Status


Stable . GitHub repo not added to SuperAGI due to ongoing issue, refer TransformerOptimus/SuperAGI#1348.

Changes


  • Added the YouTube Toolkit functionality.
  • Tools that were added
    • youtube_fetch_video which gets information available about the video such as video_name, description, channel, likes, views, number of comments.
    • youtube_search which takes in a query and searches using that query in YouTube search.
    • youtube_fetch_comments finds the comments and its replies under a video. By default returns 20 most popular comments but more can be retrieved if specified.
    • youtube_fetch_channel fetches the information about a channel by using either Channel ID, Username or Content owner ID as an argument.
    • youtube_fetch_captions which fetches the transcript of the YouTube video along with the timestamps.
  • Uses the official YouTube API
  • Uses youtube-transcript-api library for fetching the captions

Notes


  • The docker build part that as specified in the guidelines here, could not be completed due to the issue regarding the download of nltk library in SuperAGI, refer nltk modules installation issue using Docker in Windows SuperAGI#1348.
  • Uses a different library, youtube-transcript-api, for fetching video transcript since i was getting errors from the official API to fetch video captions

Did the best to my knowledge and time, completely open to review and feedback.

Regards, @sanyamjain0315

@sanyamjain0315
Copy link
Author

@cognitivebot its been a long time since i made this PR, however i would love to know how i could have made this contribution better :)

@cognitivebot
Copy link

@sanyamjain0315, We're currently reviewing your PR, and everything looks good so far. We'll be merging it soon. Thanks for your contribution! If you have more in the pipeline or any questions, feel free to reach out. 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Youtube toolkit
2 participants