Automate Your Life With Python (File Management Step By Step Example)
Автор: Alex Hyett
Загружено: 2022-11-11
Просмотров: 4118
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.
📨 Free Newsletter: https://www.alexhyett.com/newsletter/ — Join my free weekly newsletter for advice, technology and more.
❤️ Support my channel: https://www.alexhyett.com/supporters/ — Say thanks by buying me a coffee or becoming a loyal supporter.
🎓 Courses: https://www.alexhyett.com/courses/ — Like the way I teach? You might like my courses too!
👨💻 All Code: https://git.alexhyett.com/alexhyettde... — Links to all the code for my YouTube videos can be found here.
📖 Automate The Boring Stuff With Python — https://geni.us/cWI6TDq (affiliate link)
⏳ CHAPTERS
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
🔗 SOCIAL LINKS
🐘 Mastodon — https://social.alexhyett.com/@alex
💼 LinkedIn — / alexhyett
☁️ Bluesky — https://bsky.app/profile/alexhyett.com
🧑💻 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.
#coding #programming #developer
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: