Тёмный

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

Internet Made Coder
Подписаться 330 тыс.
Просмотров 697 тыс.
50% 1

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

Наука

Опубликовано:

 

7 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 400   
@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 2 года назад
A program that evaluates the code from your project and generates new functionality easily, in order to save coding times.
@bryanst.martin7134
@bryanst.martin7134 2 года назад
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 2 года назад
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 :)
@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 10 месяцев назад
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.
@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 2 года назад
@@sherryzia6770 just pirate it
@maxneumann9876
@maxneumann9876 2 года назад
nice ad
@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 2 года назад
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 2 года назад
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 2 года назад
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 10 месяцев назад
Z9.
@paulmilakeve
@paulmilakeve 2 года назад
As usual you did a great job balancing information with showing actual use cases
@ansgar7824
@ansgar7824 2 года назад
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 2 года назад
oh really, good to know!
@neanea5899
@neanea5899 10 месяцев назад
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 Месяц назад
@@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 RU-vid videos, you should at least have your automator check the context of the video somehow first lol.
@brainsniffer
@brainsniffer 2 года назад
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.
@PoeLemic
@PoeLemic 2 года назад
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 RU-vid 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 2 года назад
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.
@jaycesardo5616
@jaycesardo5616 2 года назад
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.
@lexcrob1
@lexcrob1 Год назад
Been getting bogged down with learning python took a break to find real world application. That was awesome!!
@theinnerlacedmystic
@theinnerlacedmystic Год назад
having this run in background is a waste of resources, but at shutdown!! thanks mate!!
@dhyeyy
@dhyeyy 2 года назад
the consistency is crazyyy man 💙
@amoralmemes
@amoralmemes Год назад
This is the clearest training I've ever seen
@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
@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
@e11world
@e11world 2 года назад
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 2 года назад
interesting idea for sure
@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.
@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!🔥
@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 ^^
@barrybatsma8947
@barrybatsma8947 Год назад
I love how honest u are ;) like i also searched it on the internet.
@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 года назад
👍👍
@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!
@furkan9864
@furkan9864 2 года назад
wonderful video man, thanks a lot
@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?
@hoochiecoochieman5505
@hoochiecoochieman5505 2 года назад
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 2 года назад
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
@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 2 года назад
@@s-codes14 yes we can use django to make APIs
@brevanpharaoh
@brevanpharaoh 2 года назад
@@s-codes14 Djangois used for website front and backend, not just for APIs.
@s-codes14
@s-codes14 2 года назад
@@brevanpharaoh I had no idea, but I'll do some further research, I just thought Django was for the backend only.🤔
@gustavofelicidade_
@gustavofelicidade_ Год назад
Such great content I've discovered here! thanks in advance!
@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
@gabrielblanco2969
@gabrielblanco2969 2 года назад
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 2 года назад
thanks!!
@ward7576
@ward7576 2 года назад
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.
@wongkitlongmarcus9310
@wongkitlongmarcus9310 2 года назад
great! i am exactly looking for ideas like this
@koimipoimi5483
@koimipoimi5483 2 года назад
Aattelin et äijäl vähä suomalaist aksenttii mut sähän oot suomalainen! Hyvä video, tilaukseen meni.
@InternetMadeCoder
@InternetMadeCoder 2 года назад
🇫🇮
@AshoxNr1
@AshoxNr1 2 года назад
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!
@johnnydepp4114
@johnnydepp4114 2 года назад
I love the way you are being hournest about your google search... i do the same and learn alot of it :D :D
@cutezafar99
@cutezafar99 2 года назад
Great approach to the coding
@kamel3d
@kamel3d 2 года назад
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
@vaisakhkm783
@vaisakhkm783 Год назад
youcan add tessract ocr to automatically name your images from keyword within the file :)
@anilrathore.bigthink
@anilrathore.bigthink Год назад
Thank you, Well Explained !
@jwoneill1512
@jwoneill1512 7 месяцев назад
Like the video. What editor or ide are you using?
@SaulEduardoo2
@SaulEduardoo2 Год назад
I liked your video!!... Just a quick doubt, I didn't understand the last part about how to keep the script running 🤔
@sunidhigarg673
@sunidhigarg673 Год назад
hey, i am noob in this but you are helping me in learning, thankyou!
@abdourahmanyoussouf7879
@abdourahmanyoussouf7879 Год назад
You are Awesome! Thank you
@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?
@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 9 месяцев назад
it is not harmful it just make sense why make code if someone else has already made it
@marckramer5365
@marckramer5365 2 года назад
You can use launchd to start your program automatically when your system starts.
@walkerkler
@walkerkler 27 дней назад
Good video. I decided to write my own version of the script. I have added a bit more to mine, ensure files are completely downloaded before moving the files. Run each file download on its own thread so that faster file downloads done have to wait until longer downloads are completed first. Added a timeout for each file download, I used tuples for my extensions..why...Tuples are immutable (not chanegable) and allows for the use of the membership operator "in". All in all, what seemed as a simple program to just copy a file turned out into researching how to do several things in python...which is the point...
@declaretheglory7133
@declaretheglory7133 2 года назад
some very skilled individuals out there
@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!
@marana.th4
@marana.th4 2 года назад
yesss do the shell scripting bit pleaseeee
@midknight3350
@midknight3350 2 года назад
Quick question: What would you look for on a job listing if you want to automate a job?
@alexsnowblind
@alexsnowblind 2 года назад
Thanks Mate 👍 useful video
@jaydeepkadam
@jaydeepkadam Год назад
Sir , bring more videos automation. Very interesting and detailed videos 👍👍👌👌
@InternetMadeCoder
@InternetMadeCoder Год назад
Sure 👍
@ngabngab4891
@ngabngab4891 2 года назад
Exactly, for me coding is like a super power 😂..cryptic to many that it seems like odd enchantment ...
@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.
@pixelqode
@pixelqode 2 года назад
Great approach to the coding 👍thanks..btw which code editor are you using..
@InternetMadeCoder
@InternetMadeCoder 2 года назад
VS Code
@VamsiKrishna-pp4fy
@VamsiKrishna-pp4fy 2 года назад
In windows cmd > md "pdf folder" > move *.pdf "pdf folder" We can do similarly for other file types also
@osamaabdulqader2869
@osamaabdulqader2869 4 месяца назад
@VamshiKrishna-pp4fy This is a manual task
@timcurzar6930
@timcurzar6930 Год назад
Which MacBook are you using for all your programming?
@GGLPU
@GGLPU Год назад
Great video and great presenter
@jasonhowardak
@jasonhowardak 2 года назад
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 2 года назад
agree, someone kindly did that for us on the Github repo
@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.
@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,
@RudyBanks
@RudyBanks 5 месяцев назад
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.
@filiperc
@filiperc Год назад
its possible to send automatically masajes in any app, ho have chat, using python?
@user-qm5fd8nv2q
@user-qm5fd8nv2q 2 месяца назад
cool video)
@user-xb9hi6xb1w
@user-xb9hi6xb1w 3 месяца назад
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 ?
@leonard_9500
@leonard_9500 2 года назад
I wish I could automate my OCD obsessions. I'd be free finally.
@ThomHemenway
@ThomHemenway 2 года назад
You probably should use a compiled language for this so you can start this program up on startup for Windows
@sarinasalim2494
@sarinasalim2494 2 года назад
Ok your Moomin mug has elevated you to super cool status to me. 😊
@InternetMadeCoder
@InternetMadeCoder 2 года назад
love it
@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.
@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.
@Brry4
@Brry4 2 года назад
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
@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
@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.
@user-cj3xy2qe7h
@user-cj3xy2qe7h Год назад
Superb video
@nxzthelinuxguy5192
@nxzthelinuxguy5192 2 года назад
You can setup a cron job which can basically run that python script every minute
@mark_pribylnov
@mark_pribylnov 2 года назад
The location of your channel and this video is Finland. How have you learned English to such incredible level? 😮 How long did it take?
@jessieonfly
@jessieonfly Год назад
I think it is better if you have a array list of each file type.
@computerscience8795
@computerscience8795 2 года назад
THANK UUUUU
@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😅
@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
@jairoluigideoliveira8946
@jairoluigideoliveira8946 2 года назад
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?
@rsxhitman
@rsxhitman 2 года назад
You can easily do this with autoit..although not sure if it’ll run on OS X
@Thisisahandle701
@Thisisahandle701 Год назад
When I try to use your code for this from github It has trouble with the syntax, can you help me out?
@kerimtim
@kerimtim 2 года назад
Thank you for the video. Very interesting. Now, how do I autorun the script or keep it running all the time?
@InternetMadeCoder
@InternetMadeCoder 2 года назад
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
@saysnilaz8486
@saysnilaz8486 6 месяцев назад
how can I use the python program in windows command prompt with little step by step instructions
@cetrick_yeanay
@cetrick_yeanay Год назад
Thank you! Everyone in comments such brilliant minds! 🙏🏾
@erwinputhoormanoj2965
@erwinputhoormanoj2965 2 года назад
There's a way you can schedule to run tasks at strat up.
@tizioacaso3933
@tizioacaso3933 2 года назад
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 2 года назад
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
@seimela
@seimela Год назад
I want to use Python to updates the title blocks of electrical drawings.
@jayjoe1725
@jayjoe1725 Год назад
Great video, thanks! More python automation videos like this would be fantastic!
@InternetMadeCoder
@InternetMadeCoder Год назад
more coming VERY soon!!
@CanyonWanderer
@CanyonWanderer Год назад
So cool how in python this all takes under a 100 lines!
@novicazivkovic
@novicazivkovic Год назад
Looks like its time for the Downloads folder to be included as: Downloaded Pictures, Downloaded Music, Downloaded Movies, Downloaded Books, Downloaded N, based on user preferences in every OS on this planet.
@Dacoljr
@Dacoljr 2 года назад
"just like asolving any programing problem... you go to google" 🤣🤣🤣
@TiredCommentary99
@TiredCommentary99 Год назад
Can this still be done with Python 3.10? im also on windows.
@DoorThief
@DoorThief 2 года назад
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 2 года назад
cool!
@boxbi3726
@boxbi3726 2 года назад
Are you know embedded system? Or VLSI ? Or microcontroller program?
Далее
5 Amazing Ways to Automate Your Life using Python
18:40
How I Would Learn To Code (If I Could Start Over)
13:43
Python 101: Learn the 5 Must-Know Concepts
20:00
Просмотров 1 млн
5 Good Python Habits
17:35
Просмотров 352 тыс.
25 nooby Python habits you need to ditch
9:12
Просмотров 1,7 млн
The most important Python script I ever wrote
19:58
Просмотров 107 тыс.
Python or JavaScript - Which One Should YOU Learn?
8:05
5 САМОДЕЛОК ИЗ DVD ПЛЕЕРА
10:10
Просмотров 74 тыс.
Где раздвижные смартфоны ?
0:49
Просмотров 552 тыс.
КЛИЕНТ СЛОМАЛ НАУШНИКИ ? 😳
0:51
Делаю деньги и кайфую
0:59
Просмотров 34 тыс.
Лучший худший экран - PowKiddy RGB30
12:56