Start Automating Your Life Using Python! (File Management with Python Tutorial)

  Рет қаралды 690,215

Internet Made Coder

Internet Made Coder

Күн бұрын

Sign up to Morning Brew for free today morningbrewdaily.com/internet...
What I love about coding is that it’s not just a skill that can help you build an interesting and lucrative career, but also something that you can use to actually solve real problems that you have in your daily life.
🚀 MY COURSE to Become a Python Developer from SCRATCH - bit.ly/487zzzc
Working With Files in Python (article) - realpython.com/working-with-f...
Watchdog (Python Library) - pythonhosted.org/watchdog/
My Python File Downloads Automator Code - github.com/tuomaskivioja/File...
And that’s what automating your life with Python allows you to do, so in this video I will show you how to get started with learning to teach your computer to do the boring and menial tasks you do every day, and we’re going to be doing that via a simple project to automatically organise your computer’s downloads folder.
You might ask, do I need to use Python, and if so why Python?If I know C, Java or Javascript, can I use those to automate my life? And yes, you probably can use other languages, the reason why Python is usually used for these types of applications is that it's easy to learn, has an active community, and has tons of libraries to cover many automation needs.
In addition it’s very simple to write and understand and sort of does a lot for you so you don’t need to worry about low level details like memory management or types for example.
The only downside of Python is that it’s much slower than something like C, but for these simple automation scripts that doesn’t really matter.
But yes, you can probably use other languages, you just need to check that the language has the ability to touch your computer’s file system for example.
I do recommend using Python. It’s a very nice and sleek language.
MY FREE COURSE
🚀 How to Successfully Learn to Code and Become a Software Developer - A Step-by-Step Framework - skl.sh/3WvgSzZ
🧠 Sign Up to my Newsletter to get my Free Online Computer Science Degree Template - academy.internetmadecoder.com...
OTHER STUDY & CODING RESOURCES
💰 BEST CODING COURSES. Use Code FRIENDS10 for 10% off - academy.zerotomastery.io/a/af...
➕ BEST DATA STRUCTURES & ALGORITHMS COURSE - academy.zerotomastery.io/a/af...
📗 BEST BOOK TO PASS CODING INTERVIEWS - amzn.to/3i8B8EK
MY BLOG
📗 JOIN MEDIUM TO ACCESS MY BLOG CONTENT - / membership
📸 FOLLOW ME ON INSTAGRAM - / tuomaskivioja
WHO AM I?
This channel documents my life as a Self-Taught Software Engineer as well as my journey teaching myself Computer Science & Programming.
CHAPTERS:
0:00 Solve Problems using Code
0:50 Why Python?
1:34 SPONSOR: Morning Brew
2:37 What We're Going to Build
3:45 Where to Start when Building Projects
4:30 TUTORIAL: File Downloads Management Automator
11:00 Why I Love Automation Projects
11:40 How to Use Shell Scripting
DISCLAIMER: some of the links in the description may be affiliate links. If you purchase a product or service using the links that I provide I may receive a small commission. This is no extra charge to you! Thanks for supporting Internet Made Coder :)
Tags: python automation projects, automate the boring stuff with python, learn python, python automation, automate your life, learn python fast, python fundamentals, bash scripting, learn to code, coding projets, coding project ideas, python tutorial, desktop automation, coding tutorial, python 101, how to automate tasks for beginners

Пікірлер: 399
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
Tell me your Python automation ideas!!! Sign up to Morning Brew for free today: morningbrewdaily.com/internetmadecoder
@sherryzia6770
@sherryzia6770 2 жыл бұрын
a to-do program
@skzyr8865
@skzyr8865 Жыл бұрын
A program that evaluates the code from your project and generates new functionality easily, in order to save coding times.
@bryanst.martin7134
@bryanst.martin7134 Жыл бұрын
I have 2. A phone/tablet accessible ESP controller. One a BMS to monitor power usage on a vehicle battery bank, and another to operate valves to deflate/inflate vehicle tires on a multi purpose truck. The tire function is probably a PID mode.
@PsyTale
@PsyTale Жыл бұрын
Use automator ans shortcuts. Save more rime.
@janpedersen9120
@janpedersen9120 Жыл бұрын
Find some website with something you want to buy when price changes.. so in general get a notify when price changes :)
@sotirioskapartzianis235
@sotirioskapartzianis235 2 жыл бұрын
Btw, there's also a book called "How to automate the boring stuff with python", which teaches you how to do these kinds of tasks
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
yep it's great!
@sherryzia6770
@sherryzia6770 2 жыл бұрын
@@InternetMadeCoder do i read it online or just buy it?
@sotirioskapartzianis235
@sotirioskapartzianis235 2 жыл бұрын
@@sherryzia6770 you can read a small part of it or buy it
@Gamirca
@Gamirca Жыл бұрын
@@sherryzia6770 just pirate it
@maxneumann9876
@maxneumann9876 Жыл бұрын
nice ad
@smittywerbenjj1
@smittywerbenjj1 2 жыл бұрын
This is not a tutorial about File Management with Python. This is a tutorial about how bring your Ideas to code step-by-step, which is a very important skill. very nice 👍
@neanea5899
@neanea5899 9 ай бұрын
Holaa Jesus is coming back soon! I’m telling you, only 1 name gives life: JESUS! 2 or 3 years ago i was depressed and suicidal and one day when on tiktok I encountered the love of JESUS. The Unconditional saving love of Jesus. You see, we are all sinners, the Bible says it, in “Rom 8;28: For all have sinned amd fallen short of the glory of God” we have all at some point in our life turned away from God, but god does not want us to be separate from him. You, God is holy and a righteous person who lives in heaven and made all and most imporgantly cares for all.("1Peter: Cast all your cares upon Him, for He (God) cares for you" have strayed form Him into the devils trap of temptation to sin, which we will all one day be judged for . I beg you, please turn away from sin, becaue it will send your soul to hell. So , you see the result of sin is death and eternal separation form the goodness of God, which is a terrible matter, because this leaves us with the fire and wrath of hellfire. Thats why Jesus died. The only son of the living God ,Jesus Christ loved you enough to give His life for you, so that instead of dying, you would be saved and obtain a place in Heaven, not by your good works, but by the works of christ himself. (Jn 3 :16 For God so loved the worñd tjat He gave His One and Only begotten Son, tnat whomsoever believeth in Him shall not perish but have everlasting life") . This is applicable only if you repent of your sins!, which i beg you to do.
@RoboDragonJediKnight
@RoboDragonJediKnight 2 жыл бұрын
You might consider running this as a background process. You could do research onto running scripts as a long running background process. In addition you might consider scheduling this "background script" to run at startup of your computer. Areas of research include "MacOS launch agents" (fancy name for background process; you might also hear the term daemon in Mac world managed using launchd) or crontab to run programs on a schedule. An alternative you could consider "Startup Apps" which you could search for in MacOS ecosystem that might be a bit more user friendly to get a program to run at startup. Note you could further refine that as MacOS isn't my daily driver, so there might be a better way to accomplish your goal of further automating your system. As is the case with any problem, there are multiple solutions. The benefit of running it in the background is that you don't have an extra terminal window minimized. The benefit of running at startup is that you need not start the script manually. Great video 👍
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
Yes, thank you, this is something that I was looking for!
@anthonymendoza6528
@anthonymendoza6528 Жыл бұрын
in your experience are scripts like this light weight, it seems like the WATCHDOG library is handling all that in the background. but is that a high frequency loop
@ColeCoug
@ColeCoug Жыл бұрын
Do you know how much processing power running a background process like this would use? I am wondering if there is a way to just run the sorting script once everytime something appears in the download folder instead and if that would even be worth it?
@RoboDragonJediKnight
@RoboDragonJediKnight Жыл бұрын
@@ColeCoug Not sure. One way to test that empirically would be using a process manager to monitor cpu and memory usage. If that doesn't work, you could do some simple logging and performance analysis of the python code and then determine whether your performance is acceptable. You can do some research on the aforementioned topics and you'll probably have an answer.
@RoboDragonJediKnight
@RoboDragonJediKnight Жыл бұрын
@@anthonymendoza6528 I haven't looked into implementation of WATCHDOG. I would imagine under the covers, yes, it's high frequency loop that checks for changes over time and allows a programmer to program a system in an event-driven way (on_modified in this case). This is what GUIs do if you have any experience with event listeners and handlers GUI programming (javascript, event loop, etc.). As for performance, you could analyze it empirically with performance monitor would probably be the way to go. I would imagine it's pretty lightweight. Computers are fast these days :)
@bobans
@bobans Жыл бұрын
The first thing you need is a trigger for the downloads folder, something like, if the downloads folder contains an image, move image to the appropriate folder or if the downloads folder contains video, move video to appropriate folder. Really awesome video. Gave me a lot of ideas of how to automate daily tasks with python. Will definitely subscribe.
@masqueradinglampshade4369
@masqueradinglampshade4369 Жыл бұрын
LOVE your description of what got you excited about coding. How you describe having a "superpower" that allows you to tell your computer to perform highly-specific tasks in a way that makes it like having an "unpaid virtual assistant you have access to at all times." You took the words right out of my mouth with that one. That's exactly what excites me about Python, too. Great video!
@InternetMadeCoder
@InternetMadeCoder Жыл бұрын
amazing!!
@dmitrypolovin1776
@dmitrypolovin1776 9 ай бұрын
Z9.
@ansgar7824
@ansgar7824 Жыл бұрын
I see you hard coded the differentiation for the type of file based on the file extension. Python actually comes with a library for fetching or guessing the MIME-Type of a file, which not only determines the general type (e.g. text, picture, video), but also the subtypes as text/css. It’s simply called mimetypes.
@InternetMadeCoder
@InternetMadeCoder Жыл бұрын
oh really, good to know!
@neanea5899
@neanea5899 9 ай бұрын
Jesus loves you, but all have sinned and fallen short of the glory of God, and He is coming back soon, so please repent of your sins and follow Christ today. Biblical prophecy is coming true. Jesus Christ, the Only Son of the Living God
@220SouthlandAve
@220SouthlandAve 17 күн бұрын
@@neanea5899 Coming from a fellow Christian, what in the absolute f*** does this have to do with anything this video was intending to present? If you're wanting to automate posting evangelical comments (or replies) onto KZbin videos, you should at least have your automator check the context of the video somehow first lol.
@brainsniffer
@brainsniffer Жыл бұрын
Great video, and a great thought. I’m big on automating, but I always focus on the big things and forget there’s micro-automations that could improve my life like this. One suggestion I have is, maybe the event that’s triggered that says that a file changed has a property that tells you which file, and you may not need to scan the directory. That would make sense to me, but I’m not as familiar with python to say for sure. Also, you possibly want to make sure the file isn’t still downloading, but most downloaders these days have a temp name and then change to the real name when finished.
@paulmilakeve
@paulmilakeve 2 жыл бұрын
As usual you did a great job balancing information with showing actual use cases
@alienhon
@alienhon 2 жыл бұрын
It's a really great video. I really Loved your approach towards coding,and using it for day to day lives. I just to know what all extensions do you use in your vs code
@PoeLemic
@PoeLemic Жыл бұрын
This is a really good and helpful video. I have helped teach a class on computers (not like this stuff), and this Guy has done a really good job of teaching. He's got a great future on KZbin doing this. I sure hope he keeps posting more projects like this that people can learn from. Maybe, he could even have a Q&A videos where people ask him how to do something, then he shows us.
@blackburn32197
@blackburn32197 Жыл бұрын
Thank you for sharing. I think for me and most beginners is it is easy to get overwelled with programing. This video has made my life a little bit easier.
@Reecepbcups
@Reecepbcups 2 жыл бұрын
If you want it to always run, setup a CRONTAB job to run every say, 10 seconds. You put the absolute path of the file there and it will run it in It’s directory.
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
👍👍
@jaycesardo5616
@jaycesardo5616 Жыл бұрын
I used pyautogui (a Python automation module) and cURL to download practically all images from a website (almost 3,000+ images) and automated the process of saving every layer from Photoshop. That's how great python is.
@max_porush
@max_porush Жыл бұрын
Great video! In regards to keeping it running, the best solution imo would be to have it automatically run whenever opening a browser. Simplest way that I could think would be to write a simple script that runs both that you rename / change icon to your preferred browser. If you think about it, it’s unlikely that you’d be downloading files without browsing the internet and on the off chance that you downloaded a couple files from something like discord, this should organize them as soon as you run a browser (probably pretty often). I’m not sure if there’s also a way to have it stop running when you close a browser but maybe someone else in the comments would know.
@e11world
@e11world Жыл бұрын
This is very awesome and got me thinking of something I've wanted to do for a really long time (automating adding meta tags to files once they are in a certain folder such as in this video's example having tags for music files as music and sfx for sound effects where I currently use mp3tag program on Windows to do this manually). For this though I need to know a bit more about starting with Python first. This is a good start too.
@InternetMadeCoder
@InternetMadeCoder Жыл бұрын
interesting idea for sure
@hoochiecoochieman5505
@hoochiecoochieman5505 Жыл бұрын
I'm a smart but a lazy person, I can't even tell you the lengths I'd go to have a chance to be a bit lazier on a daily basis. When I first started to learn a little bit of programming, my essential goal was to automatise my work, which was writing some really generic texts. Although the work I was doing changed a little bit after that, I liked programming and now I'm thinking about having it as a career path. Still a long way to go, but working on it every day and I'm sure I'll get there one day.
@InternetMadeCoder
@InternetMadeCoder Жыл бұрын
I'm the same as you, ambitious but lazy at the same time haha. That's one of the 3 main reasons why I love programming, I talk about that more on next week's video
@ShaneFozard
@ShaneFozard Жыл бұрын
Great video. Thanks. I made the mistake of running the program w/o having created the folders so it moved all the files to a file (not a folder) of the same name, but was unusable. Essentially I lost all my files. Fortunately I had a backup, restored all files and rectified my mistake and it worked perfectly. Thanks.
@jd2161
@jd2161 Жыл бұрын
Lesson learned lol
@kamel3d
@kamel3d Жыл бұрын
You could run it periodically as agent in the background I have used it before it is very easy to set up just edit the plist file for that
@dhyeyy
@dhyeyy 2 жыл бұрын
the consistency is crazyyy man 💙
@sandman4485
@sandman4485 2 жыл бұрын
When you're downloading a file in windows, it creates both an extension file and a part download file, and on completion it merges into a single file. Will this delay of download cause the program to move the extension to the folder before it finishes downloading and get corrupted? If yes, how would one fix that?
@efesonmez7662
@efesonmez7662 2 жыл бұрын
That was a great video. As someone who recently started to learn python, especially for data and web design. Your videos are very inspiring. Maybe you can make a video about designing our own website using Django
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
Great to hear! Perhaps I will
@s-codes14
@s-codes14 2 жыл бұрын
@@InternetMadeCoder isn't Django used for api's and not for web designing
@its_nihar
@its_nihar Жыл бұрын
@@s-codes14 yes we can use django to make APIs
@brevanpharaoh
@brevanpharaoh Жыл бұрын
@@s-codes14 Djangois used for website front and backend, not just for APIs.
@s-codes14
@s-codes14 Жыл бұрын
@@brevanpharaoh I had no idea, but I'll do some further research, I just thought Django was for the backend only.🤔
@ward7576
@ward7576 Жыл бұрын
When the event is called for file "appearing" in the folder, it's ambiguous to scan the directory for files to find the one you need. It already gives you the filename, the folder is already given and, unless a bit switch happens due to cosmic rays, your program won't fail to see that - yes, file exists and move it since it exists. Of course, unless, again, race condition happens and that file happens to suddenly disappear between it being found and acted upon.
@whoami-ty1kp
@whoami-ty1kp Жыл бұрын
Hi, I'm so inspired from you. I'm also learning coding by myself from internet. I wanted to ask that in how many languages you can code?
@mehdisheriff
@mehdisheriff 2 жыл бұрын
Great video! Btw, for those wondering, there is a way to do this without any coding knowledge through Automator which is an app on every mac. Jeff su highlighted this in one of his recent videos
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
Oh really haha, oh well at least this was a great exercise😂
@mehdisheriff
@mehdisheriff 2 жыл бұрын
@@InternetMadeCoder yeah defo. Great practice project
@VamsiKrishna-pp4fy
@VamsiKrishna-pp4fy Жыл бұрын
In windows cmd > md "pdf folder" > move *.pdf "pdf folder" We can do similarly for other file types also
@osamaabdulqader2869
@osamaabdulqader2869 3 ай бұрын
@VamshiKrishna-pp4fy This is a manual task
@lexcrob1
@lexcrob1 Жыл бұрын
Been getting bogged down with learning python took a break to find real world application. That was awesome!!
@SaulEduardoo2
@SaulEduardoo2 Жыл бұрын
I liked your video!!... Just a quick doubt, I didn't understand the last part about how to keep the script running 🤔
@pixelqode
@pixelqode 2 жыл бұрын
Great approach to the coding 👍thanks..btw which code editor are you using..
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
VS Code
@gabrielblanco2969
@gabrielblanco2969 Жыл бұрын
Quick tip, if you want to make those paths from line 9 to 13 work for more users you can use os.path.expanduser('~') to get the home directory in a dynamic way
@InternetMadeCoder
@InternetMadeCoder Жыл бұрын
thanks!!
@ikiguy07
@ikiguy07 2 жыл бұрын
First, Congratulations 🎉🥳 for 57k subs... Second, That's what we wanted mate!!! Tutorialsssssas!!!!!! For some real projects (I haven't learn python yet but I'll learn it in future saving this in my watch later)
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
thanks so much!! And yeah, people have been asking for these, more coming in the future!🔥
@theinnerlacedmystic
@theinnerlacedmystic Жыл бұрын
having this run in background is a waste of resources, but at shutdown!! thanks mate!!
@thealpacaofsupport258
@thealpacaofsupport258 Жыл бұрын
I am studying coding at my university, we have been learning about stuff like WinApi to do windows using C++ and stuff Just a couple of days ago I realized I could be using what I am learning for stuff I need to do in my daily life, and no just using this knowledge at homework and school projects This video was very interesting and fun! I enjoyed it a lot ^^
@Casey74
@Casey74 Жыл бұрын
After getting bogged down with the program, it keep review on what I was doing wrong and then... Finally got it to work. @Internet Made Coder was totally right, it does feel good when you build something for yourself to solve a problem. Thanks bro!
@jwoneill1512
@jwoneill1512 6 ай бұрын
Like the video. What editor or ide are you using?
@amoralmemes
@amoralmemes Жыл бұрын
This is the clearest training I've ever seen
@koimipoimi5483
@koimipoimi5483 Жыл бұрын
Aattelin et äijäl vähä suomalaist aksenttii mut sähän oot suomalainen! Hyvä video, tilaukseen meni.
@InternetMadeCoder
@InternetMadeCoder Жыл бұрын
🇫🇮
@Zain-ks8ws
@Zain-ks8ws Жыл бұрын
I always thought that copying code off of the internet is not good, and I was worried that it would not help me learn, but your video made it look fine; as long as it works, there is no harm.
@InternetMadeCoder
@InternetMadeCoder Жыл бұрын
definitely no harm at all!
@orangutex468
@orangutex468 8 ай бұрын
it is not harmful it just make sense why make code if someone else has already made it
@AshoxNr1
@AshoxNr1 Жыл бұрын
Haha I already planed to write the same program to keep my downloadfolder clean before I've seen this video! It seems i'm not the only one who is pissed of about the missing function for doing this :D But nice explanation bro, realy helpful!
@gustavofelicidade_
@gustavofelicidade_ Жыл бұрын
Such great content I've discovered here! thanks in advance!
@tizioacaso3933
@tizioacaso3933 Жыл бұрын
I don't know if you've found the solution on how to run your program on background i've found one (bc i've done what you've done only with shows, anime etc...) and here it is: you can rename the extension of your python script file to pyw, after that you create the executable and after you run it it will be created as a process in background that you can close through the task manager and if you want it to be started at the start up of your pc you can press WIN+R and type in "shell::startup" and place inside your .exe
@InternetMadeCoder
@InternetMadeCoder Жыл бұрын
I see, I'm on mac though, might be a different process. But there are many other solutions suggested in this comment section for mac, just haven't got arounf to doing it haha
@MEATHEADBooYA
@MEATHEADBooYA Жыл бұрын
I was wondering can you make a python web application or just GUI that speaks with windows functions? Such as what you are exactly doing here, listening to windows and then moving a file.
@vaisakhkm783
@vaisakhkm783 Жыл бұрын
youcan add tessract ocr to automatically name your images from keyword within the file :)
@marckramer5365
@marckramer5365 2 жыл бұрын
You can use launchd to start your program automatically when your system starts.
@midknight3350
@midknight3350 Жыл бұрын
Quick question: What would you look for on a job listing if you want to automate a job?
@barrybatsma8947
@barrybatsma8947 Жыл бұрын
I love how honest u are ;) like i also searched it on the internet.
@furkan9864
@furkan9864 Жыл бұрын
wonderful video man, thanks a lot
@HoracioSantisteban
@HoracioSantisteban Жыл бұрын
Great video, thanks for puting this together! One question, did I miss the make unique function? if anyone caught it, would you kindly let me know Thanks, in advance,
@jasonhowardak
@jasonhowardak Жыл бұрын
I would consider making an array of file types and then look in the array to match the file type for video, images, documents, etc rather than using many if or
@InternetMadeCoder
@InternetMadeCoder Жыл бұрын
agree, someone kindly did that for us on the Github repo
@gime1945
@gime1945 2 жыл бұрын
Would it be an upgrade or downgrade to use another library that can detect the media/type of the file being downloaded? Optimization wise, in order to accommodate more file types.
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
if there is a library that automatically detects the file type, I'm sure that would be an improvement.
@kashimmohammed7081
@kashimmohammed7081 Жыл бұрын
Hi, I do the same routine tasks everyday, as the days pass by I feel there isn't nothing new in my work and errors and other scheduling are pretty much never changed, I am looking for some sort of automation, it does include switching between excel, browser some logins can you suggest me how I should automate this work
@lindsayryder6919
@lindsayryder6919 Жыл бұрын
Can someone explain more what he meant by setting the moverhandler() to an instance I created myself? Do I absolutely need to modify it for it to work for me? I’ve kept all the other variable names the same and set them to my specific paths.
@timcurzar6930
@timcurzar6930 Жыл бұрын
Which MacBook are you using for all your programming?
@kerimtim
@kerimtim Жыл бұрын
Thank you for the video. Very interesting. Now, how do I autorun the script or keep it running all the time?
@InternetMadeCoder
@InternetMadeCoder Жыл бұрын
What I do is just run it on a terminal window every time I open my computer and then just leave it running at all times. There is probably a better way to do that, as many people have commented
@edgarmendoza3838
@edgarmendoza3838 2 жыл бұрын
Excellent video… thanks for the content, im going to create some tasks like that… regards from Mexico
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
Thank you. Go for it!
@wongkitlongmarcus9310
@wongkitlongmarcus9310 Жыл бұрын
great! i am exactly looking for ideas like this
@sunidhigarg673
@sunidhigarg673 Жыл бұрын
hey, i am noob in this but you are helping me in learning, thankyou!
@mark_pribylnov
@mark_pribylnov Жыл бұрын
The location of your channel and this video is Finland. How have you learned English to such incredible level? 😮 How long did it take?
@Brry4
@Brry4 Жыл бұрын
Is building the code line by line but searching for some parts of the code on google counted as building from scratch or optimising your code
@johnnydepp4114
@johnnydepp4114 Жыл бұрын
I love the way you are being hournest about your google search... i do the same and learn alot of it :D :D
@jaydeepkadam
@jaydeepkadam Жыл бұрын
Sir , bring more videos automation. Very interesting and detailed videos 👍👍👌👌
@InternetMadeCoder
@InternetMadeCoder Жыл бұрын
Sure 👍
@user-xb9hi6xb1w
@user-xb9hi6xb1w 2 ай бұрын
What if, I stop the terminal then these code will run in the background . Because if we think from user perspective then they will only download our file and that should work in the background ?
@travisthomas4886
@travisthomas4886 2 жыл бұрын
I want to take cs50 and eventually expand to other programming courses like the programming with c++ and game development. How long do you recommend waiting before enrolling in another course after completion of cs50 intro to computer science?
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
Why would you need to wait?
@travisthomas4886
@travisthomas4886 2 жыл бұрын
@@InternetMadeCoder do you ever feel overwhelmed by the work or a need to take a quick break in order to process the material better?
@Kinos141
@Kinos141 Жыл бұрын
How bout one better. Make python list all file exts and create folders for those exts. If you want, you can create a list so that the code groups similar files, like jpg and pngs. Edit: I just did what I proposed. Thanks to this video.
@InternetMadeCoder
@InternetMadeCoder Жыл бұрын
great idea, I think the updated code in the github repo has something similar
@anilrathore.bigthink
@anilrathore.bigthink 11 ай бұрын
Thank you, Well Explained !
@RudyBanks
@RudyBanks 4 ай бұрын
I wrote a batch script that moves my files to folders based on the file extension. Not running in background but one click and boom all files cleaned up.
@DoorThief
@DoorThief Жыл бұрын
2:58 at this point in the video I got the urge to build a windows service that monitors for new file creations in my downloads folder, determines their MIME type, if the mime type doesn't match the file extension it would replace it, then it moves the new file into a directory with the extension name.
@InternetMadeCoder
@InternetMadeCoder Жыл бұрын
cool!
@Later_Nerd
@Later_Nerd Жыл бұрын
The thing about programming is it's not as simple as people make it out to be. There's a ton of marketing saying everyone can do it and sure, at some level, everyone can do it. But to push past that entry level skill it is difficult. There are a lot of concepts that are difficult to wrap your brain around and it's unlike anything else. You have to rewire your brain in some instances just to finally start to understand bits and pieces. There will be times where you are starting at your computer monitor just mad because you've been stuck at a wall for an hour or two. Nothing you try works. Then once you finally find a solution then there is an immense sense of satisfaction. If you don't feel that sense of satisfaction then you should find another industry because you need that in order to not get burnt out. It's also really easy to get stuck doing tutorial after tutorial and never really learning the material on your own. You will learn a lot more going through a tutorial and then trying to implement those ideas without a video holding your hand. It will be hard, you will be googling things like crazy and it will probably suck. But that's how you actually learn. Figuring out how to Google your problems and find your own solutions is a very relevant skill in itself in this industry. Nobody is expecting you to remember every line of syntax. But you should be expected to find the answer, or at least something relevant to the answer by searching online. By finding problems in your life that you want to solve, that will keep you doing real world projects and putting those concepts you've worked so hard in real world use. Without that will to find these answers and solve these problems you won't make it in this field. I've seen it hundreds of times. People get enticed by the dollar signs and job security. While that all is true, you have to reach a certain level in the industry for it to be the case. If everyone could truly do it then these jobs wouldn't pay to much. Just a realistic take on programming. The marketing from a lot of companies would lead you to believe that it's very easy and that with a can do attitude you can be making $250k a year in 6 months and that is not at all the case for 99.9% of people.
@md.masumomarjashim
@md.masumomarjashim Жыл бұрын
Is there a way to run a Python code only when a change occurs? Without using Windows Task Scheduler. Most times on Google Windows Task Scheduler comes up.
@filiperc
@filiperc Жыл бұрын
its possible to send automatically masajes in any app, ho have chat, using python?
@ThomHemenway
@ThomHemenway Жыл бұрын
You probably should use a compiled language for this so you can start this program up on startup for Windows
@cutezafar99
@cutezafar99 Жыл бұрын
Great approach to the coding
@ngabngab4891
@ngabngab4891 2 жыл бұрын
Exactly, for me coding is like a super power 😂..cryptic to many that it seems like odd enchantment ...
@AdityaSharma-fx1jx
@AdityaSharma-fx1jx 2 жыл бұрын
A really informative video as expected and greatly explained......BTW what happened to your thumb
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
Thanks! Haha, dw it’s fine I just cut it a bit😅
@jairoluigideoliveira8946
@jairoluigideoliveira8946 Жыл бұрын
when trying to move a file to a directory that already has a file with the same name, it renames the file and moves, but to the directory where the .py file is stored. How can I solve this?
@ChetanKania
@ChetanKania Жыл бұрын
Just came across your channel. Very helpful as a beginner, thank you! Quick question: what app are you using on your mac to write your python code?
@InternetMadeCoder
@InternetMadeCoder Жыл бұрын
Thanks! I use VS Code
@ChetanKania
@ChetanKania Жыл бұрын
@@InternetMadeCoder perfect thank you!
@MuhammadAhmedAshraf
@MuhammadAhmedAshraf 2 жыл бұрын
what's the meaning of initializing npm and initializing express initializing session what does this means in backend development
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
No idea
@nikos4677
@nikos4677 2 жыл бұрын
it meqns to make anew priject and install express what you dont understand?
@edzoft7546
@edzoft7546 Жыл бұрын
If anyone is running into a codec error on, try a raw string for source_dir. Do this by putting an r in front of your string as below. source_dir = r"C:\Users\username\Downloads"
@TiredCommentary99
@TiredCommentary99 Жыл бұрын
Can this still be done with Python 3.10? im also on windows.
@rsxhitman
@rsxhitman Жыл бұрын
You can easily do this with autoit..although not sure if it’ll run on OS X
@boxbi3726
@boxbi3726 Жыл бұрын
Are you know embedded system? Or VLSI ? Or microcontroller program?
@nxzthelinuxguy5192
@nxzthelinuxguy5192 2 жыл бұрын
You can setup a cron job which can basically run that python script every minute
@jaykjellberg5274
@jaykjellberg5274 2 жыл бұрын
Okay alright! Since I am finally a bit faster than usual. I have several questions, my mate:) I am like 28 yo and I am a CMO at somewhat big it company. I am thinking to transfer a little bit to somewhat coding. Because more and more when you do marketing you actually need some decent coding skills. (have similar to you background actually, also studied Economics :) so questions: -how long you actually been coding? because what i see now, you seem like a decent programmer at this point with decent skills. -future of automation (my biggest fear tbh, because I am aware that IT can be automated way faster since its all in the cloud already, and we have tonnes of data. Just have a look what Dall-e 2 can do, mindblowing). I mean if it will take me 2years to get to a decent level, isn't it too little too late? I-cant really figure out your stack of technologies?) -and how long it took you (really) to be that good with KZbin?:) Ty in advance mate, big fan. Cheers from your ex-neighbor from Saint-petersburg. (because of the current situation had to leave for another country, unfortunately:)
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
Thanks for the comment Jay! 1. Now almost a year. I do some coding most days but not every day. 2. Def not too late. If you are referring to programmer jobs being automated, I don't think that will ever happen (could be wrong here ofc). Once you get into coding, you'll notice that a lot of it is actually quite a creative endeavour. You need to solve problems, which you need a human brain for. Actually writing the code is actually less important than figuring out how to write it. 3. I wouldn't say I stick to a stack, I use Python a lot, then Javascript for web stuff, dabbled with Swift for mobile, and I also did some C as part of CS50 + Java as part of an Algorithms course. 4. Haha, thank you, really it took over a year. I had a different channel before this one for a year which was a complete failure. But it was great practice :). Good luck if you decide to get into coding!!
@jaykjellberg5274
@jaykjellberg5274 2 жыл бұрын
@@InternetMadeCoder Jeez, thank you for your time:) such long and awesome answers, appreciate it a lot. Oh wow, you are learning so fast tbh:) Kudos to you for that! 2:) yeah, you are somewhat right I guess. but the sheer scale of automation is mindboggling:) I fully understand it when OPEN ai defeated OG (Dota 2 2x world champions), like the most "human" game with so many variables and a huge amount of teamwork. Was really the day when I realized how good it actually is lol. If you did not see it, strongly recommend. Especially since 2 of the team members were Finns:) 3:) quite impressive once again. 4) knew it! ahah) no one can do that good starting from zero. I kinda suggest you do the same video as this girl kzbin.info/www/bejne/a4WWeIxuhbicias&ab_channel=RuriOhama , because with we only see "tip of an iceberg", really good 2 know your beginnings. Ye I will, really wanna connect marketing with coding somehow:)
@dutchdykefinger
@dutchdykefinger Жыл бұрын
i made a whole suite of custom CLI php scripts with similar purposes over the last 15 years orso indexing files, populating databases to make things more meta searchable and the such, nealy packaging for most of my non-automated file finding , i ofcourse use voidtools everything, it also has a small ETP server biltin you can enable (or even make a service) for testing intranet kind of shit, but yeah that relies on the windows/samba infrastructure a bit more
@Thisisahandle701
@Thisisahandle701 Жыл бұрын
When I try to use your code for this from github It has trouble with the syntax, can you help me out?
@gustavojuantorena
@gustavojuantorena 2 жыл бұрын
Great video! Quick improvement: You can use a tuple as argument of "endswith()" method, so you can define all the possible extensions without the chained "or". example: name.endswith((".mov", ".MP4"))
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
Oh thanks, didn’t know that!
@kingz4038
@kingz4038 2 жыл бұрын
That’s cool, I’m learning python rn and just learnt about tuiles. Could to see they are actually useful.
@sarimbinwaseem
@sarimbinwaseem 2 жыл бұрын
Thanks for improving my knowledge Gustavo
@jessieonfly
@jessieonfly Жыл бұрын
I think it is better if you have a array list of each file type.
@Yutaro-Yoshii
@Yutaro-Yoshii Жыл бұрын
With shell, we could just `mv *.mp4 ./vids` But I digress, this is a beautiful introduction into coding everyone was wishing for. If you could pick up this thinking process, you can basically make anything!
@Yutaro-Yoshii
@Yutaro-Yoshii Жыл бұрын
Also, if you want to make your script execute every now and then, you may want to look into launchctl on mac, and systemctl on linux (sorry don't know the equivalent on windows). Those things are called service workers or daemons, and it starts up when your computer boots up.
@inayathkhalil2247
@inayathkhalil2247 Жыл бұрын
can someone plz ans to my question ok so I get to choose my professors and subjects for every semester but unfortunatly i am not able to choose my favorite professor,because so many people are choosing the same professor ,so is there anyway i can use python automation to be quick and take my favorite professors without moving a finger ?
@tadeastehan7275
@tadeastehan7275 Жыл бұрын
I did everything as instructed, but instead of a file folder, it was just a file, and when I open it in Notepad, I see random letters. That's how I lost a lot of files. Please, give me an advice
@AB-fj5wi
@AB-fj5wi 2 жыл бұрын
I dont get how the observer's schedule function knows to call that specific on_modified function of the MoverHandler What if the MoverHandler had multiple methods?
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
I believe that’s just how the Observer api is built under the hood.
@marana.th4
@marana.th4 Жыл бұрын
yesss do the shell scripting bit pleaseeee
@cetrick_yeanay
@cetrick_yeanay Жыл бұрын
Thank you! Everyone in comments such brilliant minds! 🙏🏾
@Colvin.crochet
@Colvin.crochet Жыл бұрын
"just like asolving any programing problem... you go to google" 🤣🤣🤣
@IsaThePhilosophical
@IsaThePhilosophical Жыл бұрын
What app do u use?
@InternetMadeCoder
@InternetMadeCoder Жыл бұрын
VS Code
@Kaizala1933
@Kaizala1933 2 жыл бұрын
So what happens when a file is being downloaded and that watch dog library detects it and moves it while the download isn't over yet?
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
Not 100% sure
@saysnilaz8486
@saysnilaz8486 5 ай бұрын
how can I use the python program in windows command prompt with little step by step instructions
@parbonsenga9296
@parbonsenga9296 Жыл бұрын
how much experience and understanding should you have to accomplish this project ?
@2ncielkrommalzeme210
@2ncielkrommalzeme210 Жыл бұрын
your video is brief. but you program on Mac . is it posible in windows cmd your written scripts. i mean the scripts that you wrote in command line i n your video.
@InternetMadeCoder
@InternetMadeCoder Жыл бұрын
I think so, I’m not familiar with coding on Windows
@Cathiina
@Cathiina Жыл бұрын
Hi, I downloaded Python but everything looks rather ‘dull’ in the default command prompt. How did you get that Python user interface with colours of variables, functions, etc? :)
@InternetMadeCoder
@InternetMadeCoder Жыл бұрын
I use VS Code (code editor) and have changed the theme
@Cathiina
@Cathiina Жыл бұрын
@@InternetMadeCoder Thanks very much!!😁
How I Automate My TIME MANAGEMENT using PYTHON & Google Calendar
18:22
Internet Made Coder
Рет қаралды 55 М.
5 Amazing Ways to Automate Your Life using Python
18:40
Internet Made Coder
Рет қаралды 155 М.
请善待你的娃娃第二集 #naruto  #cosplay  #shorts
00:52
佐助与鸣人
Рет қаралды 24 МЛН
蜘蛛侠这操作也太坏了吧#蜘蛛侠#超人#超凡蜘蛛
00:47
超凡蜘蛛
Рет қаралды 42 МЛН
INO IS A KIND ALIEN😂
00:45
INO
Рет қаралды 19 МЛН
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1 МЛН
Automate Excel With Python - Python Excel Tutorial (OpenPyXL)
38:02
Tech With Tim
Рет қаралды 1,5 МЛН
AUTOMATE YOUR LIFE USING PYTHON - 3 Beginner Projects (tutorial)
19:42
Internet Made Coder
Рет қаралды 103 М.
PYTHON BASICS (What I Would Learn First)
24:50
Internet Made Coder
Рет қаралды 128 М.
How I AUTOMATE my FINANCES USING PYTHON
15:30
Internet Made Coder
Рет қаралды 189 М.
Automate your job with Python
6:07
John Watson Rooney
Рет қаралды 285 М.
These coding projects give you an unfair advantage
8:13
Jason Goodison
Рет қаралды 870 М.
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Internet Made Coder
Рет қаралды 1,4 МЛН
Creepy Samsung Alarm cannot be turned off 😱🤣 #shorts
0:14
Adani Family
Рет қаралды 462 М.
Airpods’un Gizli Özelliği mi var?
0:14
Safak Novruz
Рет қаралды 292 М.