Automate Your Life With Python (File Management Step By Step Example)

Опубликовано: 11 Ноябрь 2022
на канале: Alex Hyett
1,928
54

Computers are supposed to make our lives easier but to be able to do that you need to know how to code. In this video, I cover one of the scripts I use to automate my Dropbox photos by year and month.

I also cover my thought process while writing this script so you know what to think about when you come to write your own scripts.

I am using Python to do this but you could do this with any language if you are more comfortable with another one. Python is particularly useful as there are a lot of libraries for it so you can do pretty much anything with it.

This is quite a long video so feel free to use the timestamps below to skip to the bits you are interested in.

🧑🏻‍💻 Code: https://github.com/alexhyett/youtube-...

☕️ I don’t accept paid sponsorships and I have turned off mid-video ads. You’re welcome! If you would like to support my channel see: https://ko-fi.com/alexhyett
📨 Join my free weekly newsletter for advice, technology and more: https://newsletter.alexhyett.com

Want to become a Python master? Then check out this complete Python course: https://academy.zerotomastery.io/a/af...

🗺️ Backend Developer Roadmap: https://www.alexhyett.com/backend-dev...
📖 Automate The Boring Stuff With Python - https://geni.us/cWI6TDq

🎓 RECOMMENDED COURSES (Use code FRIENDS10 for 10% off)
The Complete Web Developer Course - https://academy.zerotomastery.io/a/af...
The Complete Junior to Senior Web Developer Roadmap - https://academy.zerotomastery.io/a/af...
Complete SQL + Databases Bootcamp - https://academy.zerotomastery.io/a/af...

📚 RECOMMENDED BOOKS
Software Development
Clean Code - https://geni.us/5AEwj2
Clean Architecture - https://geni.us/yBrTX
Domain Driven Design - https://geni.us/WiR0Q0x
Design Patterns - https://geni.us/5ncUt
Developer Hegemony - https://geni.us/lAXy
Pragmatic Programmer - https://geni.us/GfNj9
Data Structures and Algorithms Made Easy - https://geni.us/sqg6kJ
Refactoring - https://geni.us/ufAP0mE
The Productive Programmer - https://geni.us/IT9WiN
Pragmatic Thinking and Learning - https://geni.us/x81A
Test Driven Development - https://geni.us/HFV52
Microservices - https://geni.us/8vMA

🚀 MY FAVOURITE TOOLS
Visual Studio Code - https://code.visualstudio.com/
Obsidian - https://obsidian.md/
Notion - https://affiliate.notion.so/alexhyett

⏳ TIMESTAMPS
00:00 Introduction
00:43 What we are going to build
01:07 Thinking through what to build
03:14 The script in action
03:52 Writing the script
07:29 Using Regex to get the year and month
09:59 Getting the created date from the file
15:00 Creating the folder
17:16 Moving the file
18:41 Edge cases
19:44 Running the script automatically in the background
20:33 Useful book - https://geni.us/cWI6TDq

You can check out more of my favourite tools on my website:
https://www.alexhyett.com/tech/

🔗 MY KEY LINKS
🌍 Blog - https://www.alexhyett.com/
🐘 Mastodon - https://social.alexhyett.com/@alex

🧑‍💻WHO AM I
I'm Alex, a Software Developer and YouTube working in the UK. I make videos about software development to help developers with the skills they need to be senior developers. As well as this YouTube Channel, I also write articles on my website (https://alexhyett.com) as well as write a regular newsletter that contains some thoughts to help aspiring developers.

‼️ DISCLAIMERS
Some of the links in this description are affiliate links, for which I get a small commission, at no extra cost to you 🙂. I appreciate you supporting my channel so I can continue providing you with free software development content!


Смотрите видео Automate Your Life With Python (File Management Step By Step Example) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Alex Hyett 11 Ноябрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,928 раз и оно понравилось 54 людям.