In search of... More coding & web dev 3rd party YouTube comments site

You can Post Talk Chat about anything here. Anything but religion/bullshit & politics/stupidity
Post Reply
User avatar
zian
Site Admin
Posts: 575
Joined: Wed Jun 24, 2009 3:54 pm

In search of... More coding & web dev 3rd party YouTube comments site

Post by zian » Sun Apr 08, 2018 1:15 pm

I want to be able to "comment" on a YouTube video that has comments disabled.

Quick Napkin Sketch...
Start with a web site just for comments. 100% disconnected from YouTube. Create a Chrome or browser extension and or drag and drop link dump sort of widget. That connects with stand alone comment site.

You copy paste, r click or drag a YouTube link/url and it creates and/or pulls up a comments page at stand alone website for that exact video. Now folks can comment on the linked YouTube video.

For when comments are not enabled but you really really wanna say something about it. And maybe connect with others that want to discuss the same video.

Wouldn't that be cool?
eventghost.net
Be there or be square.

User avatar
zian
Site Admin
Posts: 575
Joined: Wed Jun 24, 2009 3:54 pm

Re: In search of... More coding & web dev 3rd party YouTube comments sight

Post by zian » Sun Apr 08, 2018 1:16 pm

Who wants to get sued by YouTube Google n Alphabet?

Come on... Let's do this.
lol
eventghost.net
Be there or be square.

Kennelly
Posts: 1
Joined: Fri Apr 13, 2018 9:58 am

Re: In search of... More coding & web dev 3rd party YouTube comments site

Post by Kennelly » Fri Apr 20, 2018 1:01 pm

That's a brilliant idea, Zian. They wouldn't sue over this, would they? You'd probably get a cease and desist letter first lol.

Septik
Posts: 39
Joined: Sun Feb 15, 2015 1:29 pm

Re: In search of... More coding & web dev 3rd party YouTube comments site

Post by Septik » Sun Sep 02, 2018 8:51 pm

Great idea. You probably know this stuff better than me, but I immediately have some ideas regarding certain parts of this task.

Each Youtube video (obviously) has a unique ID. It is visible in the URL, which will look like this https://youtu.be/8a3-1TgyB6k or this https://www.youtube.com/watch?v=8a3-1TgyB6k. The extension could extract this ID and add look it up in some database that holds the external comments. Of course, you'd first have to determine whether comments are disabled for the video in question. I looked into this as well, and found the following:

YouTube API 3.0 has a method called CommentThreads: list. Using a GET request you can retrieve comments/comment threads, and if comments are disabled you'll receive a response like this:

Code: Select all

/**
 * API response
 */
{
  "error": {
    "errors": [
      {
        "domain": "youtube.commentThread",
        "reason": "commentsDisabled",
        "message": "The video identified by the videoId parameter has disabled comments.",
        "locationType": "parameter",
        "location": "videoId"
      }
    ],
    "code": 403,
    "message": "The video identified by the videoId parameter has disabled comments."
  }
}
Since there may be other reasons for a 403 error, you could look for the "commentsDisabled" reason parameter.

As per the API docs, this API call has a quota cost of 1. However:
Projects that enable the YouTube Data API have a default quota allocation of 1 million units per day
In other words, if your Chrome extension ties to the user's Google account, they could watch 1 million videos per day before hitting the limit (ignoring other extensions they may have). It's also possible to set a "maxResults" parameter to 1 so as to prevent unecessarily large responses.

Finally, a question: How would you handle it if comments were disabled and then re-enabled? I guess one option is to check the database before making that API call, and then if it turns out comments exists in your database but comments are re-enabled, you could have a little "Show" button with some accompanying text saying "MyService comments exists for this video". What do you think?

Post Reply