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

preview_player
Показать описание
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.

⏳ 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

🧑‍💻 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.

#coding #programming #developer
Рекомендации по теме
Комментарии
Автор

well made and edited video! keep this up the views will come easily

elad
Автор

Hi Alex this is fab - I'm just working my way through as I want to write a program to store the names and paths of all my hundreds of Ableton Live files into a csv - so I thought this would be a good place to start. Can I ask why you use the Tuple on line 11?

GrahamFMcElearney
Автор

Nice video 👍Far too underrated channel, keep it up!

oreonengine
Автор

Very cool video and i like how you explain the things you're doing

shlks
Автор

Nice little script, thanks.

Keep up the good work! 👍

alainrouleau
Автор

What program do you use to plan the project?

Kilian-yl