Skip to content

Automatically update youtube video title based on the number of views and dislikes using YouTube Data API v3, vercel and cron-job.org

Notifications You must be signed in to change notification settings

WilsonLimSet/youtube-title-views-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

youtube-title-views-updater

youtube

Setup

Follow these steps to set up the project:

  1. Follow the instructions in this guide to create OAuth tokens in Google Cloud for the YouTube Data API: Create OAuth Tokens.
  2. Continue following the guide until step 7: Replicate Tom Scott's "This Video Has X Views" Videos with Node.js.
  3. Clone this repository and create your own .env file with the necessary environment variables.
  4. Update the video ID in updatetitle.js with your own video ID.
  5. Deploy the project to Vercel.
  6. Create a cron job on cron-job.org. The URL for the cron job should be https://yourvercel.app/api/updatetitile.
  7. Enjoy!

Maintenance

Every week after the refresh token expires:

  1. Run main.js to get a new refresh token.
  2. Copy the new refresh token.
  3. Update the refresh token in Vercel's environment variables.
  4. Redeploy your Vercel instance.
  5. Re-enable the cron job.

About

Automatically update youtube video title based on the number of views and dislikes using YouTube Data API v3, vercel and cron-job.org

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published