Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

imaperson1060/ytDislikesRestorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Dislikes Restorer

Restore the like/dislike count to your YouTube videos!

About

Simple web based application to automatically update the titles of selected videos on your channel to reflect the current likes and dislikes.

Setup

To use this app, you will need to make your own Google Cloud Project (not as daunting as it sounds) for security (so you can be sure I don't have access to your account) and for the annoying ratelimit I'll talk about later - believe me it will come up again

  1. Create a project at console.cloud.google.com

    setup-1

  2. Go to the APIs & Services Library

    setup-2

  3. Enable the YouTube Data API

    setup-3

  4. Create credentials

    setup-4

  5. setup-5-1

    setup-5-2

    setup-5-3

  6. Create a .env file using the following template:

    CLIENT_ID=[client id]
    CLIENT_SECRET=[client secret]
    REDIRECT_URI=http://localhost:3000/google/auth
    
    PORT=3000
    
    • You can find the client details on the credentials page by downloading the OAuth2 client
    • Changing the port will require you to change the Redirect URI declared in Step 5 and in the .env file
    • Do not share this file with anyone
  7. If you don't already have it, download and install NodeJS

  8. Run npm install && node index.js in the command prompt of your choice

  9. Visit localhost:3000 in your browser once the application has started and log into your Google Account associated with YouTube

  10. In the Videos tab, you will have to click the Refresh Videos button upon starting the server to view any videos

    • Videos will not update automatically so you will have to click the button or restart the server every time you upload a video

Ratelimit

  • Google Cloud Projects have a ratelimit of 10,000 tokens per day
  • Token costs for actions on this application:
    • Refreshing videos - 100 tokens + 1 token per video (1 token per video includes just visiting the Videos page, not just refreshing it)
    • Updating video titles - 50 tokens per video
  • You can monitor your quota here
  • It is recommended you conserve how many times you use this application every day.
  • Warning: If you have more than 200 videos, you will not be able to update them all within the quota