✍️
Pre - Requisites
-
Terminal where you will execute the script
-
ffmpeg
♦ Arch Linuxsudo pacman -S ffmpeg♦ Ubuntusudo apt install ffmpeg -
youtube-dl
♦ Arch Linuxsudo pacman -S youtube-dl♦ Ubuntusudo curl https://yt-dl.org/latest/youtube-dl -o /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl -
Python 2.7 or Python 3.5+
-
The
Google APIs Client Libraryfor Python:pip install --upgrade google-api-python-client -
The
google-auth-oauthlibandgoogle-auth-httplib2libraries for user authorization.pip install --upgrade google-auth-oauthlib google-auth-httplib2 -
httplibpip2 install httplib -
httplib2pip2 install httplib2
🀄
Setup
1. Download the repo:
git clone https://github.com/spantheslayer/yt-upload-automation.git && cd yt-upload-automation
2. Open the client_secrets.json file & modify the client_id and client_secret part with your own oauth2 credentials.
==if you don't have your oauth2 credentials then follow this otherwise move to step 3.==
Create or select a project in the API Console. Complete the following tasks in the API Console for your project:
- In the library panel, search for the YouTube Data API v3. Click into the listing for that API and make sure the API is enabled for your project.
- In the credentials panel, create two credentials: Create an OAuth 2.0 client ID Set the application type to Other. You need to use OAuth 2.0 credentials for requests that require user authorization. For example, you need user authorization to retrieve information about the currently authenticated user's YouTube channel. Now copy the
client_idandclient_secretand modify theclient_secrets.json
3. Make the atmt.sh file executable
chmod +x atmt.sh
4. Run the atmt.sh file
Now Watch The Script Doing It's Magic XD
