Git Product home page Git Product logo

realtime-video-statistics-in-video-s-title's Introduction

Realtime YouTube video's statistics in video's Title & Description

Features

  • Free
  • Open Sourced
  • Secured
  • Cool
  • Easy to Deploy

Deploy

Read steps carefully ๐Ÿ˜Ž

  • Open GCP Create a Project & Go To it's APIs & Services .
  • Press Library & Search Youtube data api.
  • You will see YouTube Data API v3 , enable that.
  • Go To APIs & Services again.
  • Press OAuth consent screen.
  • Make it External & hit create button.
  • Just give a Application Name and hit Save.
  • Press crediantials in left menu.
  • Press Create Crediantials & OAuth client ID.
  • Select Web Application.
  • (Optional) Change the Name.
  • In Authorized redirect URIs hit โž• ADD URI.
  • The URI is https://authcode.netlify.app (Don't Change IT).
  • You will get a Client ID & Client Secret.

Hard part is done now deploy it ๐Ÿ˜ช

  • Need a VPS (Not tested in Heroku).
  • Clone the repo.
git clone https://github.com/cachecleanerjeet/realtime-video-statistics-in-video-s-title.git
  • Goto the directory.
cd realtime-video-statistics-in-video-s-title
  • Install the Dependencies.
npm install
  • Open settings.js & add your clientSecret , clientId & videoID.
  • Open index.js & go to line 62 & 64 and customize title and description.
  • Run token.js to configure token.
node token.js
  • It will give you a url open that and select your youtube account.
  • After give access you will redirect to https://authcode.netlify.app here copy the code and paste it on terminal.
  • Now you will see there is a file called .credentials created & contains a topsecret.json.
  • Whenever you newly generate the token you have to remove .credentials directory.
  • Now run the code.
node index.js
  • To run it after shell closed.
npm install forever -g
forever start index.js

Now your video's Title & Description will update in every 2 minutes.

Precaution

  • Don't ever Public your topsecret.json, clientSecret & clientId. Otherwise your YouTube account will compromised.
  • OAuth needs a redirect uri.
  • That redirect uri contains the authorization code.
  • That website just display the code to you from url.
  • The website's source code available Here.

Credits

YouTube Api Sample

Star this Repo if you Liked it โญโญโญ



My Website & Social


Website .. Facebook .. Instagram .. YouTube .. Blogger

realtime-video-statistics-in-video-s-title's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.