How to Upload Videos with the YouTube API (using Python)

  Рет қаралды 61,326

Tony Teaches Tech

Tony Teaches Tech

Күн бұрын

Пікірлер: 177
@API-Learning
@API-Learning 5 ай бұрын
Fantastic . For this I tried 2 month. And finally just now uploaded my video in KZbin. and I got mail from youtube Our team has reviewed your content, and we think you may need to make changes to make sure it doesn't violate our spam, deceptive practices and scams policy. In the meantime, we've made the following content private:
@jdcampolargo
@jdcampolargo 2 жыл бұрын
Thank you very much, Tony. Your passion shows through the clarity and deep understanding of the matter. Thanks again. Could you please make a video explaining your workflow? For instance, more about the parsing comment you mentioned at the end of the video as well as how we could use your scripts. I would appreciate how you could write a script that as soon as a file is in the folder, the program would take it and upload it. Also, have you thought about using AI for tittle, description, and thumbnail? Thank you, Tony!
@ZIRRAMA
@ZIRRAMA 2 жыл бұрын
Bro this api is not working anymore. After you upload video it automatically gets blocked and can't be reverted.
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Thanks for the kind words Juan! I've put together a tutorial for Videoflo here videoflo.app/ and you can get support on my Discord or Github if necessary
@hugh_dancy
@hugh_dancy 3 жыл бұрын
this is so crazy, i can't believe i found this video right when i needed it. thank you so much for the extensive and thorough explanation !!!
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Perfect!
@surfingmoose
@surfingmoose 2 жыл бұрын
thanks for showing how to setup and use the api. very appreciated
@actualspectral
@actualspectral 11 ай бұрын
thank you it was very helpful but can you put it on repeat to upload the same video over and over
@lifeuniverse
@lifeuniverse Жыл бұрын
Thank you Tony, you are a savior. Did you have any issue with the videos being flagged after upload?
@jacobmarquez9805
@jacobmarquez9805 Жыл бұрын
I love that you have OldBay spice in the background lol
@TheTeacher
@TheTeacher Жыл бұрын
Thank you a lot. Learned a lot from you.
@FindSponsor
@FindSponsor Жыл бұрын
i don't have any website to verify my domain . after uploading video get locked . how to solve this problem
@geraldthemetrosexualfruitc3030
@geraldthemetrosexualfruitc3030 3 жыл бұрын
is it weird - i just started looking for a such a guide & boom everything i needed to know in one place
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Perfect! Hope this helps
@sanya7349
@sanya7349 2 ай бұрын
Hello, I have a question. I am trying to set this up on a Linux server, does the command "python3 -m venv ~/env/api" at the beginning of the video apply to Linux or is it MacOS specific?
@ammarpoint9278
@ammarpoint9278 2 жыл бұрын
Thanks Tony. Is it possible to upload a video with a schedule as I can see only options with private or public? Thanks !!
@CutPerfectMemes
@CutPerfectMemes 3 жыл бұрын
Thanks for the affort but this is so uselss because the videos you upload with the API are always blocked and private. Google says: "All videos uploaded via the videos.insert endpoint from unverified API projects created after 28 July 2020 will be restricted to private viewing mode. To lift this restriction, each API project must undergo an audit to verify compliance with the Terms of Service. Please see the API Revision History for more details."
@ricky10116
@ricky10116 3 жыл бұрын
Thanks for making this video in advance! Is there any workaround to solve this to make it be access in public ? or just need to fill in the form T_T If I write code for a personal test purpose, can I apply it or not. Lack this step to make my project be all automatic ORZ developers.google.com/youtube/v3/revision_history#release_notes_07_28_2020
@xenophod
@xenophod 2 жыл бұрын
Same! All videos uploaded with the API are being restricted.
@BLVKPWR
@BLVKPWR Жыл бұрын
Outstanding. Clear. Concise. Thank you for sharing.
@danielbabei5050
@danielbabei5050 2 жыл бұрын
This one did the trick! Thank you for the help.
@mehdismaeili3743
@mehdismaeili3743 2 жыл бұрын
Excellent, thanks. I have two questions: 1)how we get size of youtube video before download it? 1)how we send stream of video to bot telegram for download on telegram? thanks if give me answer. bye
@robtheborg
@robtheborg Ай бұрын
I went at your git, but I was not able to use your programs. Could you explain that, please?
@chewingcharcter2078
@chewingcharcter2078 3 жыл бұрын
Very good explanations! I did this with no trouble at all. thank you so much, big like from here
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Excellent!
@georgesmith3022
@georgesmith3022 3 жыл бұрын
Tony thank you very much for this post. it was very analytical and thorough and I was able to follow it
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Happy to hear it George :)
@jonathanacuna
@jonathanacuna 2 жыл бұрын
The GitHub at the end blew my mind. Thank you so much for walking us through step by step
@kumardeepam
@kumardeepam 2 жыл бұрын
Thank you for the great tutorial! How do we speciu the channel to which the video should be uploaded to?
@altohausen
@altohausen Жыл бұрын
noob question... would it work to upload videos from google photos to youtube?
@pacomelammens5148
@pacomelammens5148 3 ай бұрын
thank you from france
@pitowvideos
@pitowvideos 2 жыл бұрын
The best video, thank you very much!!👏👏
@hongkongintheworld
@hongkongintheworld Жыл бұрын
Thank you so much!! I would like to know if it is possible to post image and text on community post with similar approach like this?
@Amazing_Yao
@Amazing_Yao Жыл бұрын
Someone asked the same question under your video haha
@recklessvelociraptor2579
@recklessvelociraptor2579 Жыл бұрын
Do you have any videos where you teach touch typing?
@InternetGeezer
@InternetGeezer 2 жыл бұрын
💗++ for this and Videoflo! Thank you!!
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
You are so welcome!
@salesgurupro
@salesgurupro 2 жыл бұрын
Is there any way we can avoid the authorization every time we upload a new video?
@scale...3d
@scale...3d Жыл бұрын
Thanks for making this video. But how to do the same thing using the api key rather than the outh 2?
@cmcdonough2
@cmcdonough2 4 ай бұрын
Great tutorial.
@jejdndjdjfjdhebdndnfmf782
@jejdndjdjfjdhebdndnfmf782 2 жыл бұрын
help i get this error. UserWarning: Cannot access upload_video.py-oauth2.json: No such file or directory warnings.warn(_MISSING_FILE_MESSAGE.format(filename)) it says the file doesnt exist but it does
@teddyhogan
@teddyhogan Жыл бұрын
Are you going to open up the github repo again? Does this video work without your GitHub? Thanks!
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
You can use the code in my GitHub repo with your API key
@Thilina_madushan
@Thilina_madushan 2 жыл бұрын
Tell me if you can do what I say. Upload a video from our pc to KZbin. Can't upload a video from a google drive without it?
@iGageit
@iGageit Жыл бұрын
would this work with YT Shorts?
@artificialillustrations
@artificialillustrations 11 ай бұрын
Thank you man, this helped me a lot
@weedytt9031
@weedytt9031 9 ай бұрын
i exceeded the quotas very fast. is there a simple way to increase them?
@4n7s
@4n7s 2 жыл бұрын
I tried to do the same but my videos privacy status is "Private (Locked)" and I can't change it in the control panel, apparently this is because my API is unverified. How come you can change this setting?
@Majd8346
@Majd8346 2 жыл бұрын
Same problem if you find any solutions tell me please
@TeeChemist
@TeeChemist 2 жыл бұрын
You guys got any?
@marketingunderground
@marketingunderground 2 жыл бұрын
@@TeeChemist do you have the title replaced by "Test Title" ?
@ayankakadiya
@ayankakadiya Жыл бұрын
I have a verified api. I don't have any such issues
@ryleq9295
@ryleq9295 Жыл бұрын
@@ayankakadiya where did you verify it
@victorcalfiman3241
@victorcalfiman3241 2 жыл бұрын
Excelente video y bien explicado es justo lo que estaba buscando, saludos.
@danielestebanparragallego6387
@danielestebanparragallego6387 Жыл бұрын
You should decrease resolution of your monitor for Your next videos, I'm watching on my cellphone and I don't get visualize the content in a good way
@zwayz3546
@zwayz3546 Жыл бұрын
wdym? i have video in 1080p, can see everything.
@danielestebanparragallego6387
@danielestebanparragallego6387 Жыл бұрын
@@zwayz3546 you are watching from a big screen. Try it from your cellphone...
@andrewtcoder
@andrewtcoder Жыл бұрын
Thank you! It was very helpful!
@demart
@demart 5 ай бұрын
Thank you!
@MadCaril
@MadCaril Жыл бұрын
Struggling to create a json file using my terminal on spyder. it keeps saying its not a recognized command. help :(
@okami_linux_gaming
@okami_linux_gaming 6 ай бұрын
hi, is that youtube api free of costs??
@Films4English
@Films4English Жыл бұрын
Awesome tutorial
@DarkBow_
@DarkBow_ 3 ай бұрын
Thanks mate!
@daniilzemtsovski5689
@daniilzemtsovski5689 Жыл бұрын
super. thank you for tutorial
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
You are welcome 😊
@LittleFlyingRockets
@LittleFlyingRockets 2 жыл бұрын
Best tutorial on this! Thanks
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Glad it was helpful!
@cjhoffmn
@cjhoffmn 3 жыл бұрын
Nice Video Tony. Easy to follow - I have mine up and running. I ran into a problem when testing though - Can you share some thoughts about the Quota during testing? In particular - it appears you can only do 12 queries while its still be "tested" but I'm not sure if I can or should change the auth to "in production." Can you walk through that a little bit?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're right about the quota. You'll have to submit your application through the review process to get a quota increase. I went through this process and it takes a week or so support.google.com/youtube/contact/yt_api_form?hl=en
@cjhoffmn
@cjhoffmn 3 жыл бұрын
@@TonyTeachesTech Yup! I ended up doing this - and although I think it was a slightly strange process - they approved me and I'm approved to upload. Thanks!
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
@@cjhoffmn Happy to hear that
@europeanunion5765
@europeanunion5765 2 жыл бұрын
Before I start.. You can only do 12 api uploads in total or what were you guys talking about?
@trikkee
@trikkee 11 ай бұрын
Thank you bro !
@AlanPreiti
@AlanPreiti 2 жыл бұрын
Hello, thks for the video! You have gain a new subscriber
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Thanks for the sub!
@itsumarejaz
@itsumarejaz Жыл бұрын
Can you please make a video for Facebook Video Upload API as well. Will be much appreciated. Thanks
@Emrys1.0
@Emrys1.0 9 ай бұрын
This is very nice thanks for this video
@TonyTeachesTech
@TonyTeachesTech 9 ай бұрын
Most welcome 😊
@Emrys1.0
@Emrys1.0 9 ай бұрын
@@TonyTeachesTech i have a question Is the video shared only privately?
@reapertrading
@reapertrading 2 жыл бұрын
Fire tech and love the old bay
@marketingunderground
@marketingunderground 2 жыл бұрын
my video is uploaded but my title is missing , i have the error "command not found" any ideas ?
@testformelda
@testformelda Жыл бұрын
I have the same issue.
@ldlda
@ldlda 21 күн бұрын
there is 2to3 which automates the python 2 to 3 code conversion
@hidayatmania7403
@hidayatmania7403 Жыл бұрын
Hi Tony that was a really good tutorial. I wan't to know if there is any way we can bypass the consent screen as I want to run my code on cloud instance daily as a cron job. So, I need a way to bypass the consent screen. This can be a good video for your channel too.
@facilitator999
@facilitator999 Жыл бұрын
did you find a solution, i also want to automate upload.
@nandinitata2951
@nandinitata2951 Жыл бұрын
@@facilitator999 have you?
@facilitator999
@facilitator999 Жыл бұрын
@@nandinitata2951 it's not possible to do it.
@technologyinsights94
@technologyinsights94 Жыл бұрын
Can we upload using API Key?
@knightc0r3
@knightc0r3 4 ай бұрын
9:10 soo... what happens if we don't have our own website?
@reliableaxis
@reliableaxis 2 жыл бұрын
Thanks for this video mate. I must just be too much of a damn newb because I almost always bump into issues instantly. Its like no ones environment is the same. For instance, I can't even run the command pyrhon3 -V without errors, but py --version does work. the "which" and "source" commands do not work either. Trying really hard to learn but its so damn difficult.
@okpanda_
@okpanda_ Жыл бұрын
if you are on windows, use python and not python3. for example, python3 -V. you do not need to use the which and source commands mentioned in the video either
@TheMarketingShowChannel
@TheMarketingShowChannel Жыл бұрын
Thank you Tony!
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
Welcome!
@IMPremNishad
@IMPremNishad 2 жыл бұрын
I love your setup 🔥🔥🔥❤️
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Appreciate that thanks!
@YSR_Believer
@YSR_Believer Жыл бұрын
Thank you
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
You're welcome
@storyxc6740
@storyxc6740 2 жыл бұрын
thx a lot, it's really helpful.
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
You're welcome!
@jan.bellon
@jan.bellon 2 жыл бұрын
Why does the api make an error 403 and say i exceeded my quota in my first try? WHY ? !!!!!
@moneybags6840
@moneybags6840 Жыл бұрын
What about uploading multiple videos to a specific playlist?….
@casual_gamer1413
@casual_gamer1413 2 жыл бұрын
API is free? and also tell me that when need to upload bulk videos on schedule basis then?
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Yes the API is free
@meusegundocanal6169
@meusegundocanal6169 Жыл бұрын
Hey! Could you tell me why my videos are getting blocked??
@yomanlight5204
@yomanlight5204 2 жыл бұрын
Hi i have this error : Please specify a valid file using the --file= paramet Someone can help me please ?
@realcartoongirl
@realcartoongirl Жыл бұрын
what's the limit per day
@wechatl
@wechatl Жыл бұрын
very thanks broo
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
Welcome
@alexdin1565
@alexdin1565 2 жыл бұрын
Hi, can we upload a video from an external URL??
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Probably, but that would take some additional coding
@alexdin1565
@alexdin1565 2 жыл бұрын
@@TonyTeachesTech please can you show me how i can do it
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
@@alexdin1565 I don't know how to do that without doing research
@tammannappamannikeri5120
@tammannappamannikeri5120 2 жыл бұрын
ty
@Me-eh6xz
@Me-eh6xz 3 жыл бұрын
Great content! Can you please teach us how to upload videos to dailymotion using their API?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
I'm not familiar with that
@praveensarathy4549
@praveensarathy4549 Жыл бұрын
An error occurred: b'{ "error": { "code": 403, "message": "Request had insufficient authentication scopes.", "errors": [ { "message": "Insufficient Permission", "domain": "global", "reason": "insufficientPermissions" } ], "status": "PERMISSION_DENIED" } } ' how to resolve this
@melissabeautymissuniversep9669
@melissabeautymissuniversep9669 2 жыл бұрын
this is really good! thanks
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
No problem 😊
@tshaylatte9502
@tshaylatte9502 7 ай бұрын
thanks man!
@TonyTeachesTech
@TonyTeachesTech 7 ай бұрын
You're welcome! Subscribe for more :)
@indieideas8079
@indieideas8079 3 жыл бұрын
Awesome. Can you also make a video for php?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Probably not. Google might have example PHP code though
@hugh_dancy
@hugh_dancy 3 жыл бұрын
is there a way to modify it to bulk upload movies that are in one folder ?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You can call the upload function in a loop to do that
@AnkitMaurya-bb6jr
@AnkitMaurya-bb6jr 7 ай бұрын
please explain with use with javascript
@upl1nk.v01d2
@upl1nk.v01d2 2 жыл бұрын
I succesfully managed to configure settings at Google Dev Console and upload my video to my yt channel, but at another tries I encountered an error with fetch response "Unauthorised". I don't know how to launch again that auth localhost web :(
@ayoubelhannaoui6620
@ayoubelhannaoui6620 2 жыл бұрын
have you found a solution ?
@upl1nk.v01d2
@upl1nk.v01d2 2 жыл бұрын
@@ayoubelhannaoui6620 no
@ayoubelhannaoui6620
@ayoubelhannaoui6620 2 жыл бұрын
@@upl1nk.v01d2 i found the solution to thus problem.
@upl1nk.v01d2
@upl1nk.v01d2 2 жыл бұрын
@@ayoubelhannaoui6620 I finally uploaded my test video with API! I carefully was going step by step again by this tutorial. Idk why I have auth this time after about 2 months. Anyways, big thanks for author for sharing his knowledge!!
@InsightByte
@InsightByte 3 жыл бұрын
Smashed it Tony
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Thanks!
@JeffAporta
@JeffAporta 2 жыл бұрын
the content of this video works only for private videos, i tried to upload public videos and it won't let
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
You'll need to have your app reviewed by Google (or at least a quota increase) to upload public vids
@akameamv4720
@akameamv4720 Жыл бұрын
what about shorts ??
@460ZoO
@460ZoO Жыл бұрын
Does anyone have "Processing abandoned" on KZbin after the upload?
@RobertJene
@RobertJene 10 ай бұрын
12:24 - create a python script to upload to KZbin
@dabody123456
@dabody123456 3 жыл бұрын
i enjoy from the tutorial video is more than Awesome I had fun and learned I would have had a problem im using Windows How is the client_secrets.json at 12:27 Or rephrase the question How to create a josn file and or if i download it form KZbin > thnx alot for share it
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You can find the template for the json file here developers.google.com/youtube/v3/guides/uploading_a_video
@dabody123456
@dabody123456 3 жыл бұрын
@@TonyTeachesTech thnx a lot for answer {f} i do remembrance now after I have a silly question !! fellow i m working in winds 7 i found error : can't find _main_ module in upload_video.py thnx a lot for helping
@LOANETWORK
@LOANETWORK 10 ай бұрын
what is the point of this tutorial if it doesnt include the verifcation process?
@Vegetal999
@Vegetal999 3 жыл бұрын
Is it possible to run it on Google colab?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
I'm not familiar with Google Colaboratory, but after a quick search it seems like it might be possible!
@Vegetal999
@Vegetal999 3 жыл бұрын
@@TonyTeachesTech can you make a video?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
@@Vegetal999 Sorry probably not
@Vegetal999
@Vegetal999 3 жыл бұрын
@@TonyTeachesTech why?
@xenophod
@xenophod 2 жыл бұрын
@@Vegetal999 I would guess "why" is because he's not familiar with Google Colaboratory.
@adrielfilipedesign
@adrielfilipedesign 7 ай бұрын
Thankssss
@TonyTeachesTech
@TonyTeachesTech 7 ай бұрын
You're welcome! Subscribe for more :)
@lordquin5
@lordquin5 2 жыл бұрын
If anyone comes across this bug: If your API page doesn't load: Use a different browser. I used Opera and it didn't work and then I switched to Chrome
@TechnicalHeavenSM
@TechnicalHeavenSM 3 жыл бұрын
Can we somehow see upload progress bar??
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
I'm not sure how to do that
@TechnicalHeavenSM
@TechnicalHeavenSM 3 жыл бұрын
@@TonyTeachesTech ok☹️☹️
@MeraIPLOfficial
@MeraIPLOfficial Жыл бұрын
That's not API That's using OAuth and Asking for Authentication every time i start the script and that doesn't fulfil the purpose of Automation
@fredherring876
@fredherring876 Жыл бұрын
does anyone know how I can run this as a script
@amelieviennot5570
@amelieviennot5570 2 жыл бұрын
you can bulk upload videos but cant bulk insert thumbnails why is that ?
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Not sure
@jowlergames115
@jowlergames115 Жыл бұрын
I am not sure you should share your secret key buddy 10:54
@MarkRodenburg
@MarkRodenburg 2 жыл бұрын
the github is not for uload KZbin anymre
@meridorl
@meridorl 2 жыл бұрын
At uploading i am getting HTTP error 400 , is anybody know what it is ?
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
That means "Bad Request". I would make sure that you are providing the correct info
@Philippinesball582
@Philippinesball582 2 жыл бұрын
I'm upload is KZbin please
@TanmaySpotalpha
@TanmaySpotalpha 11 ай бұрын
Not useful. I needed fully through code, not passing by command line, in that case manual upload is good.
@BigDog_Memes
@BigDog_Memes Жыл бұрын
this is out of date, oauth2client is bad and not supported anymore
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 811 М.
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 80 МЛН
How to Buy a Car To Flip for a Profit ($$$ Side Hustle)
47:41
ChrisFix
Рет қаралды 9 МЛН
Upload Videos to YouTube with the Data API in Python
34:25
Nono Martínez Alonso
Рет қаралды 13 М.
Making Automatic YouTube videos with Python
7:32
Shifty the Dev
Рет қаралды 193 М.
40 APIs Every Developer Should Use (in 12 minutes)
12:23
Coding with Lewis
Рет қаралды 379 М.
Python + YouTube API | Automating descriptions
10:46
mCoding
Рет қаралды 22 М.
Python bot that makes movies and posts them daily to YouTube.
27:07
ClarityCoders
Рет қаралды 96 М.
How to Use YouTube API in Node - Full Tutorial
24:43
Monsterlessons Academy
Рет қаралды 18 М.
Video Data Processing with Python and OpenCV
32:05
Rob Mulla
Рет қаралды 79 М.
Using Python and YouTube API  to Create Analytics on any Channel.
46:50