Hope everyone is having a great week so far. In this video we're going to be writing a script that I've personally used a lot to calculate the total duration of KZbin playlists. If you have any more suggestions of what you'd like to see us use the KZbin API for then definitely let me know. I have a few more videos in mind of what I use this for personally, but I'm also interested in hearing your use cases as well. Thanks!
@zaabimahdi4 жыл бұрын
@Corey Schafer: do you really watch youtube courses ???
@coreyms4 жыл бұрын
@@zaabimahdi Oh yeah, all the time. Not always programming. Sometimes it can be a college course or some other field of study I'm interested in.
@SalimHamood14 жыл бұрын
@@coreyms can you make ml script that predicts corona cases ?
@zaabimahdi4 жыл бұрын
@@coreyms very interesting and motivating to read this comment from you... Thank you !
@i_v_t4 жыл бұрын
Can we download the playlist using this?
@HamroMotors4 жыл бұрын
Best Teacher for me all over Internet This guy is giving all his videos for free ... really appreciate man
@ForTheGreaterGood4 жыл бұрын
You can say that again
@jimshapedcoding4 жыл бұрын
Corey Schafer OOP and also Django literally took my Programming level from beginner to great level, a level that gave me enough confidence to give my own shot with Python series Thanks for teaching us a lot Corey, You are still number 1 in all Python communities that I'm a part of. ;)
@sekekeretsu41724 жыл бұрын
My fav python and programming language course channel on youtube. The video length are right for my attention span. Also the accent is a plus. Definitely recommending it to my colleagues.
@theanswer3sixers4 жыл бұрын
If anyone else wants to avoid regular expressions, they could do the following. KZbin duration is in ISO 8601 format, so I used the *isodate* library (pip install isodate) and used its 'parse_duration' method which returns a timedelta. So the code at that point simply becomes: for video in video_response['items']: iso_8601_duration = video['contentDetails']['duration'] dt = isodate.parse_duration(iso_8601_duration) total_seconds += dt.total_seconds()
@coreyms4 жыл бұрын
Nice! Definitely a better solution than I used.
@hamed51744 жыл бұрын
60:26:37 of my precious life time has been spent with Master Schafer!
@jadia4 жыл бұрын
A much-needed video. I've been thinking to do this for a long time. Thank you so much for making it. I'll join the membership once I'll have a steady income to support myself. Thank you again for making such content free of cost and available to everyone.
@dailydevtips4 жыл бұрын
Well articulated tutorial. I used this tutorial to calculate the the total length of all videos on Corey's channel. This is what I found. 77:16:47
@omar7amdi3 жыл бұрын
The best instructor in every subject
@bohdan1344 жыл бұрын
Recently i just search service for make this calculation.. and now you made guide about it! Awesome! Thanks! Like!
@Special_Sharpie4 жыл бұрын
Corey, you are an absolute legend, I came across your tutorial videos a while back and was blown away by how in-depth and non specific they are. Whenever I am looking into a new module or python feature, I check to see if I can find one from you! Keep it up! With your help I have almost mastered API scrapping, working with JSON files and much more! THANK YOU!
@justin35944 жыл бұрын
I’m so happy to see these api videos. To me they are the most useful thing ever. I would love you to cover how to setup an app to maintain local data from an api or scraping. In other words we can pull the data down, but how do I put it in a database and get it to update ever day or so? That would be gold.
@obi6664 жыл бұрын
You' re doing great job making these tutorials. I really respect people who make quality and usefull stuff for free. Keep it up!
@tony996592 жыл бұрын
Corey, you are the most amazing teacher youtube will ever have!
@netafeliciano61263 жыл бұрын
You and Ahmad Bazzi are my go-to python channels !
@AbeshGhosh-m6h Жыл бұрын
best channel to learn coding. hats off to you man. you are very good teacher
@rafasantos234 жыл бұрын
60 hours on social medias?: NO 60 hours watching Schafer's videos: YYYYYEEEEES
@veryexciteddog9633 жыл бұрын
Corey makes watching over half an hour of video to learn how to see a value that KZbin could have just included in the API if they weren't braindead much more bearable.
@tejasvix4 жыл бұрын
Liking and commenting before watching the video is must for this Channel....
@mehrabdarvishi4 жыл бұрын
corey : " i believe that..." probility calculator : "100%"
@DanielLavedoniodeLima_DLL4 жыл бұрын
Awesome video as always, Corey. I already programmed a lot in Python throughout college, but your videos made me understand way better a lot of concepts I thought I fully understand, only to realise I missed some details that made a difference later. You're a great teacher, thanks a lot! May I suggest 2 topics I find it hard to find content about: - Django REST framework - Create an executable and GUI for inputs in a Python script (this one would make a big difference to me, as it allows people that are not familiar with programming to use my scripts) Again, thanks for the quality content and I hope I can contribute to you after I graduate from college. For now, I recommend your videos to everyone that asks me for help learning Python
@thekitten1174 жыл бұрын
I like to watch at 1.75 speed. A small adjustment is required. Great vid!
@gambomaster4 жыл бұрын
You are one of my favorite teacher. Thanks man. 👍👍👍
@ThomasGabrielsen4 жыл бұрын
This was a great tutorial to getting started with KZbin API. I'll check out more of your videos. Your Python tutorial playlist is currently impressive 62:9:43 long. Thank you! :-)
@radonspace20983 жыл бұрын
To be precise: 62 hours: 9 minutes: 42 seconds. 😉
@ThomasGabrielsen3 жыл бұрын
@@radonspace2098 D'oh! :-)
@ramshankarkumar42224 жыл бұрын
Hey ..... I just made this youtube playlist time calculator using Selenium and Beautifulsoup . Using selenium and Soup it was little bit tricky but for understanding the web scrapping part it was very essential for me to go with those. And thank you so much sir for uploading this video usin KZbin API because for sure it will be much faster than my selenium and soup script and it removes many corner cases that i was facing in my script.... Again a big thnks for this :)
@saralgyaan2 жыл бұрын
your videos are best. I learn a lot from you on daily basis. Thanks a lot....
@tejasjoshi37244 жыл бұрын
Hello Corey, Today is Guru Pournima In India. It is kind of like Teacher's Day. We worship our teachers today. So I would like to wish you Happy Guru Pournima and thank you for doing what you are doing.
@coreyms4 жыл бұрын
Thanks!
@rangabharath42534 жыл бұрын
Awesome as always
@harishbetrabetАй бұрын
Excellent video, good explanation of concepts.
@fidodido483 жыл бұрын
Very useful - thank you. I've added user playlist input so there's no need to change id manually each time.
@antonie90344 жыл бұрын
Thanks Corey I've learnt alot from you than in any classroom ever. Ive been learning Data science and I think I havent learnt about Numpy [Numerical Python] Kindly do a video on that
@processorbot87614 жыл бұрын
Thank you so much Corey! Just what i needed to help me execute a project idea!!
@DSD4 жыл бұрын
That was great! I'm coming to this from the wrong video so my credential part is grabbed differently and I could get the code to run correctly from the download - but I followed along and got it to work. My playlist has 376 hours 22 minutes and 59 seconds. Would like to try to use this to go through the subscriber list and the member list but can't get that to work right. WIll have to try again after getting this to work.
@AlexMelemenidis9 ай бұрын
Great video! Very useful!👏👏👏
@DavidYoud3 жыл бұрын
That was a nice leg up. Thanks!
@MultsElMesco4 жыл бұрын
This was a great tutorial! Thank you so much for sharing it
@GautamGupta-qd6qz4 жыл бұрын
Please make videos on scikit-learn..... you're the best teacher on KZbin
@fazalmehmood68024 жыл бұрын
Hey man. May God bless you. Great video as always. The way you break down complicated knowledge into small easily absorbable chunks is really amazing. I was wondering if you can make some tutorials about React js.
@mostafahamza31062 жыл бұрын
there is no words i love you haha lol how i did not see this chanel before hah
@rhoynarr2 жыл бұрын
LOL
@CB-ym7vg2 жыл бұрын
awesome style... thank you very much
@letampatrickbienwi46106 ай бұрын
Great video Cory, I feel really empowered to tackle in depth python projects. Wouldn’t it be simpler having a function that treats the duration as a string and extracts each value based on when the current value in the iteration is not a digit? Thank you once again!
@rangavembar4 жыл бұрын
Awesome!!
@an4s9114 жыл бұрын
Hey there 👋😂 Corey Scafer, I love your content and your python tutorials are just so amazing and really explained. Even though I've learned python from a lot of different sources and have found many really good ones, I always come back to your channel to check if you have anything about it because I understand more better in your videos. And also I started learning python in the beginning was from you. Im just a beginner programmer, and what I want to recommend/suggest is that I wanted some tkinter tutorial, and in most of the other KZbin channels I don't find content that is as good as yours. If you'd like please upload a tkinter or just some GUI Python tutorials. Thank You very Much 😄
@BrendanMetcalfe4 жыл бұрын
Nice vid!
@oscarmartinezbeltran4 жыл бұрын
Fantastic!!
@TypicallyThomas3 жыл бұрын
This is so helpful
@متعةالمحققكونانالجزء94 жыл бұрын
😍 i it will be great if you show us how to apply these things to private videos and playlists 😍 thanks in advance
@AmanYadav-nu6yx4 жыл бұрын
Sir, please create a video on socket programming in python.I thrice went through the documentation but didn't understand much.Your videos are true source of learning for me. I went through other tutorial s to but those are very confusing for me.
@pratikkawalgikar48394 жыл бұрын
Hi Corey, Your videos are the best ever for understanding. It would be really great if you could do a series on Numpy and lambda functions. I only trust you when it comes to Python language learning. #StaySafe :-)
@henrychen14334 жыл бұрын
thank you Corey for all the amazing tutorial videos! also can you please upload a video on using AWS Lambda functions to resize images, would be very helpful!
@yandelyano4 жыл бұрын
Mobile dev community especially the new baby Flutter & Dart, needs a Corey Schafer. Please consider that segment, there are a plethora of content creators who give courses on the subject, none goes out of their way to explain things thoroughly.
@TheShubham674 жыл бұрын
61:4:15 the current view time of python series!
@jansaibic26274 жыл бұрын
Hi Coery, great video, thank you for all your tutorials, it helped me incredibly to boost my career.. Do you think it would be possible to do video about new dataclass that came up in python3.7? I am thinking about using it for my automation test data, but I not sure about all of it ups and downs and since I am still a newbie, a video from you on this topic would help me a lot. Thank you and keep up the awesome work!
@tanmaydeshpande4 жыл бұрын
I'm pretty sure that you could just use pytube to get the duration of all the videos within the playlist and then simply add them up to get the actual duration of the playlist.( I believe there are finer options within the method to get specific format of duration)
@rudrakshaggarwal39414 жыл бұрын
Please make a tutorial for django rest framework too
@saubhagyatandon47874 жыл бұрын
He already has it
@raghuramabl67294 жыл бұрын
Python on KZbin ✌
@dakoderii42214 жыл бұрын
PyTube
@raghuramabl67294 жыл бұрын
@@dakoderii4221 youthon
@noned53084 жыл бұрын
Can you please make an update javascript tutorial. Thank you so much for all the tutorials you have made honestly no one explains as clear as you do thanks.
@basilolewa33072 жыл бұрын
You’re a beast
@rhoynarr2 жыл бұрын
lol
@remixowlz4 жыл бұрын
Hi Corey, when are you going to start Machine Learning Series ? - chatbot, classifier etc . Your tutorial videos are really solid and amazing!
@sanjuthreddy64353 жыл бұрын
sir please do make a tutorial for using Google docs API like how to get the text data form a document in a google doc
@CaribouDataScience Жыл бұрын
Have you created any more videos in this series?
@ЕленаЯкунова-б7с Жыл бұрын
Delightfully clear❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤
@kalaivendhan74154 жыл бұрын
@corey 11:24 So why did you add the join function here, when appending the video id to the list its already a list and its working for me when I pass the vid_ids directly
@TopicalAuthority4 жыл бұрын
TypeError: expected string or bytes-like object, I am taking this error in 18:50, any idea?
@mukeshrar2652 жыл бұрын
The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special enough to break the rules. Although practicality beats purity. Errors should never pass silently. Unless explicitly silenced. In the face of ambiguity, refuse the temptation to guess. There should be one-- and preferably only one --obvious way to do it. Although that way may not be obvious at first unless you're Dutch. Now is better than never. Although never is often better than *right* now. If the implementation is hard to explain, it's a bad idea. If the implementation is easy to explain, it may be a good idea. Namespaces are one honking great idea -- let's do more of those!
@rhoynarr2 жыл бұрын
thanks
@murugan07234 жыл бұрын
Please start a tutorial series on how to create Interactive Reporting Dashboard with Python.
@MelvinReano-t1w9 күн бұрын
Nice tutorial sir.. is this applicable even in year 2024 or 2025?
@sebastiancaro77134 жыл бұрын
Hey Corey! Quick question: I followed this tutorial all the way through and when I printed out the hours, minutes, and seconds. I got the wrong time. It gave me 62:9:44, do you know what the issue might be? (My code is exactly the same as yours) PS: Love your videos man, excellent educational and very entertaining tutorials
@marklonganbach32684 жыл бұрын
Hi Sebastian, I also received the same timestamp as you. Corey's original video was posted several months ago, and if you watch closely you'll see he had 140 videos in his playlist. As of my post's date, he now has 143 videos. I'm guessing the 3 additional videos add up to the extra ~90 minutes seen.
@Veptis2 жыл бұрын
Need to do that for my watch later and also check the average hours per day
@daito91634 жыл бұрын
Before 2 minutes of this video,i just calculated his *Python Tutorial* playlist duration manually and it took 10 minutes to calculate 143 video's duration 😅.
@cwansu4 жыл бұрын
python composition and aggregations please Sir ....❤️❤️
@raghuramabl67294 жыл бұрын
Nice
@nooruldeenq.50374 жыл бұрын
Video number 141 :( is missing, it was deleted, i cant reach it, for this video am happy to watch and learn from you, thanks :)
@FireFly9692 жыл бұрын
thank you
@MoisesRoth4 жыл бұрын
Corey, have you already use web2py framework?
@quasa04 жыл бұрын
Dude that's like literally the case - I've had this problem so many times and I never did focus on this project. Can you put up a link somewhere so that we could use that solution?
@alenjose39034 жыл бұрын
you said its good to create a virtual env for your projects, can we achieve that using the pycharms inbuilt virtual environment option while creating a new project?
@blackberry16224 жыл бұрын
Mr. Schafer i am watching your pandas series. Can you use dark mode on jupyter if you use it from next time on because most of the students use dark mode and we have to switch continuosly from dark to light and so on. I love your videos.
@chocotaco83964 жыл бұрын
Hey Corey, can you make a video on your present sublime setup?
@Zwiesel662 жыл бұрын
9:49 just out of curiosity, I tried it with a list and not a comma separated string , and it worked too - was it magic? 🤔
@ram_rahim_creations_officials Жыл бұрын
Hello Sir, thank you for sharing with us. How can i get, the time a person actually watches a video? ( ex: if a total duration video is 10 minutes but I have watched only 4 minutes).
@rauhan_sheikh2 жыл бұрын
Is this outdated now? coz I can't find the username or userid of the channels from URLs, it seems that those URLs do not contain username anymore?
@AlexMelemenidis9 ай бұрын
Hi! It seems KZbin has switched to a different concept Handle, and the respective function parameter "forHandle". I was not able to find my username anywhere in the youtube settings... @coreyms: maybe add this to the video description? Or if possible even add it as image overlay (or subtitles) in the video?
@fowad273 жыл бұрын
How would I need to modify the code to find the duration of my watch later playlist? What I gather from the documentation, the watch later playlist cant be queried in the same way as the other playlists. Great video btw
@LordVlader4 жыл бұрын
Would multiprocessing or threading be appropriate for speeding up this script when calculating the duration for each video in a playlist?
@shyamss23383 жыл бұрын
How do I mention what playlist is giving us the respective amount of time in the final f string print statement rather than reflecting back to the playlistId?
@sametdemir39614 жыл бұрын
Corey can you add comment section to your django app? Thank you for videos!
@prashantpathak31754 жыл бұрын
Hello Corey, Can you help to understand how an object holds thousands to million elements inside it without taking any space and when we run for loop or convert to list we are able to see all those values. In short how internally an object holds all this big list of elements.
@mahmoudsalama15122 жыл бұрын
nextPagination missing from data any solution as playlists over 50 cant git it
@mirazking76944 жыл бұрын
make some real world project video....Like: what you do with django. Also,,,how can use good keyword to find my youtube video...first search...using python?? Automatic do with python.
@asoul55284 жыл бұрын
Hey there, thanks for the youtube api section. I wonder, if it is possible to track the donation amounts from KZbins SuperChat on realtime? From what I saw it is somehow "event-driven" but not really sure about that. I think this would make an interesting video, but not sure if this goes too deep.
@kvnagendra53544 жыл бұрын
*Please make a video on django and rest api ,json and Api,U can only explain them very well,Plz plz*
@nagabhushanr55994 жыл бұрын
Can you please make a video series on NLP using python nltk
@akuma00094 жыл бұрын
Will you make a video tutorial for posting text , image , video on User facebook wall with python .
@ayush.kumar.139074 жыл бұрын
could i use this API to get information about Watch Later playlist of my own channel? I know that WL playlist cannot be accessed for others' channels.
@Mireda-wr3yc4 жыл бұрын
Python : like 👍 Java : comment...
@TheNewTravel4 жыл бұрын
Thanks Corey. Is there a quick modification that could use this script to calculate total duration of all videos on a channel?
@Just2Dimes4 жыл бұрын
I tried this and it wasn't trivial in my experience, but I found this that made it a lot easier: github.com/youtube/api-samples/blob/master/python/my_uploads.py It's python 2 code though, so alter the 'print' statements, but this should work to get a list of all video_ids for a channel and then you can use Corey's code
@srikrupa74454 жыл бұрын
Hi,can someone please tell me how long it took for you people to learn corey sir's matplot lib series,i am a beginner,i want to assess my learning pace,for me it took about one week,once corey sir teaches,i go to the description and write down the entire code and i will write beside each code why was it used,is this a good method to learn? I do this so that i will be able to remember things in the long run,so whenever i forget, i can go through my notes,is this a good method
@that_guitar_guy70324 жыл бұрын
What text editor are you using? It seems pretty good I’m using an IDE btw
@Sebatorsk4 жыл бұрын
Sublime Text, says so in the top left corner :)
@iskypandit4 жыл бұрын
Sir can you please make videos on numpy?
@tesla95274 жыл бұрын
very good video. May I ask what is your sublime theme?
@coreyms4 жыл бұрын
Predawn
@drac88544 жыл бұрын
Hey Corey can you make a video on how to use KZbin data api's livebroadcasts method it shows on github docs but isnt in main docs and i don't understand how to use it To be specific what to pass in part argument Thanks