A cli tool for fast uploading videos to youtube.
brew update
brew install guifeliper/you-up/you-up
First thing you should authenticate with your Youtube Data API V3 from google. For that follow the steps:
Step 1:
-
Turn on the YouTube Data API Use this wizard. to create or select a project in the Google Developers Console and automatically turn on the API. Click Continue, then Go to credentials.
-
On the Create credentials page, click the Cancel button.
-
At the top of the page, select the OAuth consent screen tab. Select an Email address, enter a Product name if not already set, and click the Save button.
-
Select the Credentials tab, click the Create credentials button and select OAuth client ID.
-
Select the application type Other, enter the name "YouTube Data API Quickstart", and click the Create button.
-
Click OK to dismiss the resulting dialog.
-
Click the file_download (Download JSON) button to the right of the client ID.
-
Move the downloaded file to your working directory and rename it client_secret.json.
Step 2: Run the following command and the Browser will show up asking you to connect with you Google account, accept the oAuth2 connection.
you-up auth -f "path/client_secret.json"
and you are done to upload videos.
you-up upload -f "./data/sample_video.mp4" -t "testing auth"
you-up upload -f ./upload.json -m true
where the json file is equal to:
[
{
"title": "My video uploaded by json",
"filename": "./data/sample_video.mp4"
},
{
"title": "My video uploaded by json 2",
"filename": "./data/sample_video_2.mp4",
"description": "Hello this is a video uploaded via you-up."
}
]
docker build --target dev . -t go
docker run -it -v ${PWD}:/work go sh
go version