Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dave/youtube

Tool to upload videos directly from Google Drive to YouTube
https://github.com/dave/youtube

Last synced: 3 months ago
JSON representation

Tool to upload videos directly from Google Drive to YouTube

Awesome Lists containing this project

README

        

### Google sheet to Json

http://blog.pamelafox.org/2013/06/exporting-google-spreadsheet-as-json.html

(but use export_to_json.js as the script)

### Switch to project

```
gcloud config set project youtube-tool-260519
```

### Reconnect

```
ssh 167.71.128.132
screen -d -r
```

### Disconnect

```
Ctrl+a then d
```

### Setup

```
# Add the Cloud SDK distribution URI as a package source
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list

# Import the Google Cloud Platform public key
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -

# Update the package list and install the Cloud SDK
sudo apt-get update && sudo apt-get install google-cloud-sdk

# Initialise
gcloud init

# Install Go
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt-get update
sudo apt-get install golang-go

# Copy keys
mkdir ~/.credentials
pico ~/.credentials/drive_secret.json
pico ~/.credentials/youtube_secret.json

# Initialise project
cd ~/go/src/youtube
go get
go run *.go

# Initialise screen
screen -a

```