Created
November 7, 2017 19:37
-
-
Save Miserlou/65928bbd05b79f8a34e456e3db6739dd to your computer and use it in GitHub Desktop.
uploader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Starting upload..") | |
title = s_title + ' - by u/' + submission.author.name + " to " + submission.subreddit.url | |
description = "Originally posted to " + submission.url + ". This video is uploaded by a bot for the convenience of mobile reddit users. Sorry about your copyright." | |
output = subprocess.check_output([ "/usr/bin/python2.7", | |
"youtube-upload/bin/youtube-upload", | |
outfile, | |
"--title", | |
title, | |
"--client-secrets", | |
"client_secrets.json", | |
"--credentials-file", | |
"yt-u-c.json", | |
"--description", | |
description], | |
env={'PYTHONPATH': '/var/task'} | |
) | |
video_id = output.strip() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment