-
Terminal where you will execute the script
-
ffmpeg
♦ Arch Linux
sudo pacman -S ffmpeg
♦ Ubuntu
sudo apt install ffmpeg
-
youtube-dl
♦ Arch Linux
sudo pacman -S youtube-dl
♦ Ubuntu
sudo 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 Library
for Python:pip install --upgrade google-api-python-client
-
The
google-auth-oauthlib
andgoogle-auth-httplib2
libraries for user authorization.pip install --upgrade google-auth-oauthlib google-auth-httplib2
-
httplib
pip2 install httplib
-
httplib2
pip2 install httplib2
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_id
andclient_secret
and modify theclient_secrets.json
chmod +x atmt.sh
Now Watch The Script Doing It's Magic XD