Coder Social home page Coder Social logo

you-tube's Introduction

You-tube Assistant

project running
Quickly calculating the playlist length and number of videos instead of doing it by hand
extremly useful with very long playlists

Table of contents

Quick start

  • in order to run this code you should install python3 on your machine pip install python3
  • install PYQT5 pip install PYQT5
  • Clone the repo git clone https://github.com/omarmohamed101/You-tube.git

installation

First visit this link

1- if you dont have any projects yet you should see CREATE PROJECT or you may find New project if you already did before, so after creating a new one give your project a name. then click CREATE
2- then we have to enable our api, so click api library and search for youtube data api then click enable
3- Now we need to make an api key, to do so, click on CREATE CREDENTIALS then it will ask you a couple of questions about what kind of credentials we need.

  • Which API are you using? choose the api you just created which will be youtube data api
  • then Where will you be calling the API from? choose other non-UI
  • Finally below What data will you be accessing? choose public data which will do the job in our project.
    then click What credentials do i need? and you should now be seeing the api key COPY that key and clilck done.

We need to add this key to the enviroment variable to keep it away from the code


For windows
1- open control panel
2- select system and security
3- navigate to system
4- on the left choose advanced system settings
5- click on environment variables
under user variables click new then name the variable `YT_API_KEY` and put you key in the value and click ok. pay attention to this name here because it is used in the code and if you named it something else it will not wort unless you update the code.

For Mac & Linux:
1- open you terminal and navigate to the home by typing `cd`
2- open the path file in any text editor EX: `nano .bash_profile`
3- at the top of the file type `export YT_API_KEY = ""` and in the double quotes insert the key we've generated above
4- save the file

How to

open any playlist you want and from the url grab the playlist id, you will found it after the equal sign.
then paste it and click search playlist

you-tube's People

Contributors

omarmohamed101 avatar

Watchers

 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.