DEV Community

Lalit Pagaria
Lalit Pagaria

Posted on

Obsei: Missing YouTube dislike count?

Dear Dev Community!

Obsei is an open-source low-code AI powered automation tool. Please refer Obsei introduction thread. I would like to share about our new integration: YouTube video comments.

As you are aware that YouTube is stopped showing video "dislike" count. So how about analyzing it via sentiments of the comments?

With this integration you can easily perform following tasks:

  • getting alert on negative or spam comment on your video
  • aggregate all comments and extract insight to analyze reveal more detailed engagement metrics
  • fast and easy creation of ML review dataset
  • and many more

Please check the demo:
Image description

If you are Python person then this is all you need it:

from obsei.source.youtube_scrapper import YoutubeScrapperSource, YoutubeScrapperConfig

# initialize Youtube source config
source_config = YoutubeScrapperConfig(
    video_url="https://www.youtube.com/watch?v=uZfns0JIlFk", # Youtube video URL
    fetch_replies=True, # Fetch replies to comments
    max_comments=10, # Total number of comments and replies to fetch
    lookup_period="1Y", # Lookup period from current time, format: `<number><d|h|m|M|Y>` (day|hour|minute|month|year)
)

# initialize Youtube comments retriever
source = YoutubeScrapperSource()

# This will fetch information from configured source ie twitter, app store etc
source_response_list = source.lookup(source_config)
Enter fullscreen mode Exit fullscreen mode

If like YAML then you would need following config:

source:
      _target_: obsei.source.youtube_scrapper.YoutubeScrapperSource
source_config:
      _target_: obsei.source.youtube_scrapper.YoutubeScrapperConfig
      video_url: "https://www.youtube.com/watch?v=uZfns0JIlFk"
      lookup_period: "1Y"
      max_comments: 10
Enter fullscreen mode Exit fullscreen mode

Looking forward for your valuable feedback.

Repo URL: https://github.com/obsei/obsei

Top comments (0)