from simple_youtube_api.Channel import Channel from simple_youtube_api.LocalVideo import LocalVideo # loggin into the channel channel = Channel() #channel.login("c:\\keys\\client_secret_244642730545-m6s4um0g6p3289ig7k92oseusisibnfp.apps.googleusercontent.com.json","c:\\keys\\cre.storage") channel.login("c:\\keys\\client_secret_244642730545-m6s4um0g6p3289ig7k92oseusisibnfp.apps.googleusercontent.com.json",storage_path="c:\\tmp\\storage.json") #, "credentials.storage" # setting up the video that is going to be uploaded video = LocalVideo(file_path="C:\\data\\demo\\test.mp4") # setting snippet video.set_title("My Title") video.set_description("This is a description") video.set_tags(["this", "tag"]) video.set_category("gaming") video.set_default_language("en-US") # setting status video.set_embeddable(True) video.set_license("creativeCommon") video.set_privacy_status("private") video.set_public_stats_viewable(True) # setting thumbnail #video.set_thumbnail_path('test_thumb.png') # uploading video and printing the results video = channel.upload_video(video) print(video.id) print(video) # liking video video.like()