Giter Site home page Giter Site logo

yohanome / rate-youtube-playlist Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 5.72 MB

Like or Dislike Youtube playlists within just a few seconds, just copy the url and paste it

Python 100.00%
playlist rate video python youtube-api youtube youtube-playlist

rate-youtube-playlist's Introduction

Rate YouTube Playlist

One day I opened YouTube and watched a playlist and then when I finished it, I really wanted to appreciate the man who made this playlist by liking it. But I realized that I have to go through every video and like it. Worsen the situation the playlist was in range of 30 to 50 videos, So it was so painful to do that. Should I have to open each video and like it?!! Of course I did not do that. I made a program which can do that for me, So if you have the same problem which i had don't worry, i got you!.

Before you get started

You have to be familiar with YouTube API if you want to modify the code. Also you may want to have a look at OAuth 2.0 for Installed Application which is the method that i used to make this program.

Get started

  1. Go to this website to select or create project:

    • click continue after selecting the appropriate choice for you.
    • On Add credentials for your project, click Cancel.
    • Select OAuth consent screen, Specify the application name and email address then click save.
    • Create Credentials then choose OAuth client ID.
    • Select the application type other, enter a name, and click Create button.
    • click the download button to the right of client id.
    • Rename the file any name you want and save it in your working directory.
  2. Install Google API Client Library for Python:

    • pip install --upgrade google-api-python-client
  3. Install additional libraries:

    • pip install --upgrade google-auth google-auth-oauthlib google-auth-httplib2

Please if you have any Problem at any of the above steps, refer to this link there are more detailed information.

  1. You should have an API Key

  2. Make sure that your python version >= 3.5

  3. Run the main.py:

    • python3 main.py

How the program works

You will be prompted to enter a path to the Credentials which you have downloaded it in step (1), Make sure you enter a path followed by a slash and then the file name (ex. XXX/XXX/secrets.json), and you will also be prompted to enter your API key. After that you will have to authorize the program, by using a link which should show up. Then a menu will appear and you can choose to: Rate(like, dislike, none) a video, playlist or exit. Enter the URL of the video or playlist followed by a comma then the rate and let the program do the work for you.

IMPORTANT Note

Don't delete a file named 'utility.txt'. it is very important file, if you have any problem with Credentials path or API key please refer to utility file and check if you specify the correct path and API key or not.

rate-youtube-playlist's People

Contributors

yohanome avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.