Skip to content

A small Slim 3 application to compare the subscriptions of two YouTube channels

License

Notifications You must be signed in to change notification settings

BytewaveMLP/SubCompare

Repository files navigation

SubCompare

standard-readme compliant

A small Slim 3 application to compare the subscriptions of two YouTube channels

SubCompare is, as the name would suggest, a simple application that utilizes the YouTube Data API to fetch the subscriptions of two YouTube channels and perform some basic comparison between them. It takes two YouTube channel IDs as input, and produces a comparison breakdown of the common subscriptions between both channels as well as the subscriptions unique to one or the other.

Table of Contents

Background

SubCompare was created at the request of a friend after they failed to find any similar service. It's not a terribly useful niche application, but we programmers like a challenge. :)

Install

Prerequisites

Obtaining an API key

To obtain a YouTube Data API key, click here and enable the YouTube Data API v3. Then, go to the Credentials section, and create an API key. Add optional restrictions as you see fit, and copy the API key into .env post-installation.

Installation

$ git clone https://github.com/BytewaveMLP/SubCompare
$ cd SubCompare
$ composer install
$ cp .env.example .env # assuming composer didn't do this for you
$ $EDITOR .env

In .env, fill out the required YT_API_KEY config option (see Obtaining an API key for info).

At this point, install your nginx configs if necessary and restart your webserver.

Usage

Simply browse to your configured domain. SubCompare will present a form with two boxes for channel IDs (if you aren't sure how to get your channel ID, click here). Just paste the channels you want to compare into the box, and click Submit. SubCompare will handle the rest.

Maintainers

Contribute

Issues, suggestions, or concerns? Submit a GitHub issue!

Want to add a feature? We accept PRs!

License

Copyright (c) Eliot Partridge, 2016-17. Licensed under the MPL v2.0.