3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
Vložit
- čas přidán 29. 05. 2024
- 🚀 Go from Beginner to Python Developer - bit.ly/3TFjhsS
Build these simple beginner Python projects to practice your Python skills and bolster your portfolio.
Python is one of the most powerful programming languages out there due to its versatility and the prevalence of libraries to achieve all sorts of interesting things.
These are some examples of Python scripting projects you can do as a beginner very easily to see the power of the Python programming language and learn to code in the process.
I also teach the basics of zsh shell scripting to make running these programs from your terminal window even easier.
My code:
github.com/tuomaskivioja/3-Si...
Pillow Python library:
pillow.readthedocs.io/en/stable/
PyPDF2 Python library:
pypi.org/project/PyPDF2/
Pytube Python library:
pytube.io/en/latest/
Premium Resources to Become a Software Engineer from Scratch:
🚀 FREE Course to Start Your Career in Software Development - coursecareers.com/a/internetm...
🚀 Become a Software Engineer with no Degree - academy.internetmadecoder.com...
📸 FOLLOW ME ON INSTAGRAM - / tuomaskivioja
🧠 Sign Up to my Newsletter to get my Free Online Computer Science Degree Template - academy.internetmadecoder.com...
CODING RESOURCES
💰 MY FAVOURITE 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
OTHER AMAZING LEARNING RESOURCES
📚 Get 1 Month Free on Skillshare and learn any skill. Code: aff30d21 🏆 (affiliate link) skillshare.eqcm.net/LPr92a
📘 Make It Stick: The Science of Successful Learning - amzn.to/3v16zYH
MY BLOG
📗 JOIN MEDIUM TO ACCESS MY BLOG CONTENT - / membership
GEAR & APPS I USE
📸 MY CAMERA FOR CZcams VIDEOS - amzn.to/3BjU7Vv
🎤 MY MIC - amzn.to/34Q1QP6
💵 Sign up to Wise to avoid fees when sending money abroad - wise.com/invite/u/tuomask39
OTHER VIDEOS
💻 How I Learned to Code in 4 MONTHS - & Got a Software Engineer Job (no CS Degree) - • How I Learned to Code ...
⌨️ How I'm Teaching Myself Computer Science using Notion (OSSU) - • How I'm Teaching Mysel...
🖱 CS50 FULL REVIEW - Best Course to Learn Computer Science in 2022? (edX, Harvard) - • CS50 FULL REVIEW - Be...
WHO AM I?
On this channel, my aim is to give you the tools, strategies and methods to learn to code effectively - according to science! In addition, I document my life as a self-taught software engineer.
CHAPTERS:
0:00 Python is amazing
1:00 Project 1
5:20 Project 2
9:26 Project 3
13:00 SHELL SCRIPTING BASICS
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 :) - Věda a technologie
Comment below what video you want to see next
Please more videos like this!
Please more video like this 🥰🍉 I'm so into this ❤️
GitHub link does not open
thanks for pointing out, I had it on private by accident
Please make more videos like this thank you
So many Python project videos on CZcams claiming to be "for beginners", but the only comprehensible lines of code are the imports. As a person *just* dipping his toes into Python - never touched a library or read API documentation - I'm very grateful for this video. Was able to follow along with all three projects and added some additional features by following the APIs. 🙏 bless!
this is probably below begginer and more like learner.. most of it is just importing modules
how do you find out about things like a library or reading API documentation, i dont even know what those are
@@seldom1305 do you have discord? I can teach you guys if you want
@@excaliber2845 you as well. I should probably make a free course on youtube lol
Programming is all about documentation. If you know the basics of the syntax you can literally do anything as long as you know where to find docs to whatever [Always google or CZcams for me]
Thank you very much for taking the time to make this video!! I am an intermediate hobby-coder, I took Python for GIS in college and this video was easy for me to follow. There were some workarounds I had to implement as I'm working with a fairly fresh install of Ubuntu 22.04, but was able to have my code exit the same way yours did without too much downtime. Highly recommend this video to anyone that wants practical experience without watching another "print(hello world)" tutorial!!
Watching your video kickstarted a good motivation in me to finally go ahead and start Python for real. Even with an MS in Physics, my experimental work has actually never needed too heavy of a coding (mostly just a lot of MATLAB and other tools like SolidWorks, etc). CZcams downloader seems like an amazing little project I can customize and maybe even learn UI development!
Hows it going mate?
The first line on the top of the Shell Script is called Shebang. This line represents the type of shell that the user will use when running the script. It is important to know this.
🔥
Hi, the video was good. One thing that I want to point out is that in your code for PDF merging, the "merger.write()" command should be outside of the for loop. If not then the files will be merged multiple times as long as the loop goes on. Thanks
Another great tip for merging PDF's on a mac is: after highlighting them, left click --> Quick Actions --> Create PDF
The remarkable information you provide to your viewers needs to be applauded. I sincerely appreciate your effort to expand your viewers knowledge. A sincere thank you!
no
Damn, blew me away with that first project... you were not kidding that you wouldn't be doing games as projects. Subscribed.
From learning other languages I found using the language in a real world situation is the best way to learn and remember. This was a great video, please keep doing them!
The amazing amount of things that can be done with Python never cease to amaze me!!👍
indeed!
I have to agree. It is also very diverse. There is something interesting for everybody.
guys im a beginner and i dont understand how to open the "ytdownload.py" window on my laptop. How did he go from Terminal to the coding window?
@@legendal2463 theres a terminal tab in visual studio code, which is the software he is using.
Love it thanks, I'm still new and doing some courses on python. This video helped me see how to actually use the code and not just have it all stored.
I once made the pdf merger and photo editor but didn't thought that you could literally download yt videos!
Finally not more ads from yt download websites
My first real and useful project that I decided to do was an automatic image downloader that could detect the exact type of images you wish to download from a website. I was too lazy to do it manually so I wrote a script that selectively got the images, saved them in separate folders and sorted by date. Not too shabby if you ask me
I use java, swift & kotlin mainly but I'm amazed by the number of things I can do with python. I'll definitely start learning it.
im starting with kotlin, absoulute beginner. what do u recommend?? any channel, or applications ?
@@afraimjoseph8989 watch Programming with Mosh's full 6hour free Python tutorial on youtube. Its the best and highly recommend it
@@ajmjabir1061 He's asking for material about Kotlin, not Python. Anyway, thanks for the recommendation. I'll check that video myself. :)
Just a little correction of your code for merging the pdf:
files = ["/home/vially/WORK/osw/file1.pdf", "/home/vially/WORK/osw/file2.pdf"]
for file in os.listdir(os.curdir):
if file.endswith(".pdf"):
merger.append(file)
print(file)
merger.write("MainFile.pdf")
Actually the merrge.write has to be outside of the for loop as well...I ws getting the same PDF many time before i got the ast pdf in the array only once. But when i brought the merge out of the for loop i got each of the pdf only ones...But this applies in a case when you have more than 2 files in the directory...you can even define which files you wanna loop by putting them in an array
Dude, Pytube is a game changer especially since I found you can do audio only. Thanks so much!
Same here ;)
How ? Do you have the python code
Good stuff, i always felt like i need some motivation to use python and its really good for everyday automation stuff. I tend to have a lot of files monthly to sort of archive into folders with dates and such which is how i learned Rust XD. I am gonna be making a newer version in python for archiving them more organized with hopefully more sophisticated date and subfolder selections.
On another note, for everyone who might copy the merger, the merger.write("...pdf") should be outside the loop so that it only runs once after the loop finishes to avoid potentially writing the same file as many times as the number or files in the same folder(pdfs or not). I often use cloud backups for important works and it can sometimes mess with their sync attempts. (And yes i understand probably more people commented about this or similar)
wow, I was a jock once and this video just changed how I look at solving problems of the world. I was so narrow in my thinking. Really, thanks !
There's a library for literally everything hahaha
Yep!
That's why we all love python 😄
Lmao literally!!!
Yeah that's a perk of having a huge community :)
Everything's done already
that's SO cool seeing these little projects you can do! It gives me ideas of things i'd like to try and make once i finish learning about Python!
Great!
How are you coming along with leading so far?
I ran the ytDownloader on a Windows machine. I had to add the "r" in front of the file path for the download folder to get it to work but other than that it works flawlessly. Great video.
Yes it is necessary because of the '\' sign inside the path. If we don't write 'r' at the beginning then '\' this sign is treated as an escape element like '
', '\t' and more. To avoid the error we either write 'r' at the beginning or we can also give '\\' doubt oblique sign instead of '\' single oblique sign inside the path wherever it is present.
You're one of my favorite youtubers seriously, you're just great and have really helped me learn a lot
This is awesome! As a teacher who has had to teach computing, while not being qualified in computing, I wish I had seen this earlier. Students would be interested in this kind of stuff.
Keep them coming please! 😅
No disrespect, but how did you get the job?
@@bigpimpen1000 surely the school asked them to teach that class. Its really common when theres no enough teachers at that academic
@@bigpimpen1000 💀💀😭
Quick note for those who may get confused (like I did): the CZcams script won't download 4K video - it won't even download 1080p. Due to CZcams's use of the DASH protocol for higher resolutions, the max resolution that this script can handle is 720p. DASH downloads audio and video separately and you need to post-process to combine them, using something like ffmpeg.
Could you explain? What should I put in instead of: get_highest_resolition? Thanks
The information, you provide is amazing, I have learnt heaps about programming and python from your channel, always have good advice, and you are easy to understand!
Didn't even know doing these things was possible in Python!
Thanks a ton!
TY🤩
Would love to see a video on how to best learn syntax fundamentals!
GREAT VIDEO!
That's why I love coding.
My main language is java, didn't like python, but after seeing this, I might give it a go !!!
Please continue to create more content like this one! Thank you for sharing your knowledge and keep it up.
These are great 24 hour Hackathon projects for my HS. Thanks for the ideas.
Okay great! I don't really like these ideas, but finally someone is actually giving practical ideas and these seem super easy. I'm starting to understand the power and practical applications of python.
Python by itself isn't even powerful, but when you factor in all the amazing libraries, it's clear why so many experienced programmers prefer python to the alternatives for many use-cases.
@@ryanstewart531 that’s the power of a great community for ya
Great guide, thanks for the video! I followed it and tried downloading this very video and it worked, however it didn't download the 4k version, but the 720p. So I started digging into the pytube docs and found out that get_highest_resolution() will only work for videos up to 720p (aka "progressive streams"), because for videos of higher res YT delivers video and audio separately ("adaptive streams"), so we'd have to dl them separately and then combine them. I'm looking into it.
ooh really, I had no idea, thanks for sharing this! So that is why so many videos I download only have 720p haha. Awesome stuff mate!
Let us know if you figure out out.
Any updates on this? Still only able to download 720p
Honestly, this is the most helpful and insightful videos that I have come across regarding Automating Python for Beginners. It's quick and straight to the point. Thank you for this video, for that I will not download your video as a respect to content creator like yourself :P
Someone must've already said this, but you need to have your `merger.write("combined..")` function call outside the for loop. Otherwise, when there are non-pdf files inside the folder, it will create buggy combined PDF files.
There's the solution! Thanks :)
00:02 🐍 Python projects are simple and practical, fostering immediate application.
01:00 🖼 Image editor project utilizes Python's library for easy photo editing, offering potential automation for repetitive tasks.
05:21 🎥 CZcams downloader project enables video downloads with just a few lines of Python code, eliminating the need for premium services.
09:26 📚 PDF merger project simplifies file management by combining multiple PDFs into one, enhancing efficiency.
13:01 🐚 Shell scripting enhances workflow automation by enabling program execution directly from the command line, reducing manual intervention.
Great tutorials and videos. keep working on your very useful projects you saved me at least one problem with the youtube code. thanks.
Great to hear!
Bro thank you so much this video was exactly what I needed to see! Keep up the good work!
even for me who is 50 years old, and not very knowledgeable in coding, this seems like something I could learn
I’ve done Projects 1 and 3, but that CZcams downloader is so cool! Thanks for sharing!
You're so welcome!
bro r u using mac or windows because in my case im using windows and when i run zhs it tells me that zhs is not internal or external command :|
Omg it was awesome, i was looking for some information and this guy made it completely clear in minuts. Ty brother.
Great inspiration.
I’m only beginning to learn and this was super helpful. Keep them coming.
How's the learning going?
How is your learning going?
omg I've been using python for years and didn't know the shell part, thanks!
Not only is this content really useful (I love the absence of useless w**k) but it's really well-presented and there is no irritating artificial handclap music to drive me crazy. Great job!
This is just something unreal, thank you for that!
These are great ideas and if you play with it and custom it then it will teach you a lot
Something I did recently in Python, was to create a Python program that would call out to the wikiservice using sparql, where I would grab certain information used from the result of the query to be used to place in a JSON file. I certainly didn't want to manually create all that JSON, so Python did it for me, all 100k+ lines of JSON data I needed for a web app I'm developing.
This is the best free software Ive seen. Respect.
amazing tutorial. I tried project 2 in a few minutes sucessfully. Thanks a lot!
Nice work!
Thank you!! I was so scared to start the course trying to change my career now I feel relaxed . I thought python is very complicated
I think I'm gonna finally dip into my first Python side project bc of your awesome vid that is REALLY for BEGINNERS! i understand it immediately and inspired me to explore more on pillows :) cuz i love photoshop
Great to hear!
Just finished my first Python Project -- YT vid downloader!!! Millions of thanks to you sir!!!
Your project is so useful! My high school US History teacher love it!
You aren't programming, using libraries is cheating. You just are using other peoples work and claiming that you "programmed" something
@@esfera2181 buddy modern day programming is 90 percent using pre-existing libraries. What do you think packages are!!?!? At the end of the day these are all just tools to be used to achieve your specif project goals.
thats some value i really appreciate to receive, had fun watching thanks for sharin
First video of yours I watched, Half way into the video I Liked, Subscribed and Commenting. Awesome!
Awesome! Thank you!
So i have not a lot of programing experience... But i looked at your guide, about the YT Downloader, not so long ago i was searching for an app, something like this on the internet. Long story short. I just watched the video, i'm in my bed, installed a random python client on Android, and basicly installed the pip, figured out how to show path to Download folder on my phone and VUOLA!!!!! I god damn downloaded a random video from CZcams!!!! OMG, from my phone, with almost ZERO knowledge hahaha, this is AMAZING!!!
THANK YOU, so so much :)))
I'm starting to learn python, and this video is very motivated for me
I love the fact that after showing us how to steal youtube videos, you then talk about how we should like the video to help youtube understand that its a good video. Playing the system man, love it
hehehe
Great video. Clear and concise.
ngl as much as i struggled with the first one, it really got me hooked on working on it
very impressive :)
m a complete beginner, had no clue about the code but love the out come. cant wait to be able to do stuff like this.
Long way to go buddy 😅
Me too😅😅😅😅.A complete novice
Amazing video, learnt something new today.
Thx for adding timestamps, and nice video 🙂
For the youtube one, there's youtube-dl for those who wanna do it on bash. Since now many terminals (at least here on Linux) now support image view, it would be nice to load some image thumbnails and select em to download the vid. I think there's a way to use the mouse to select videos, i know that kitty terminal has an in-built way, I'm not sure if alacritty or Wezterm has em, haven't tried it out.
Many terminals that display images?
Only one I know is kitty
But I probably wouldn't use s terminal to watch videos anyway
It'll just have to be mpv
So informative, thanks a lot!
Great video. Well presented, and very inspiring. Thank you.
🔥
bro, you are the best! liked and subscribed ❤
The only CZcams channel that I actually like first then watch the video
Usefel and generalizable ideas. Thanks!
These are great projects! Thanks for sharing - excited to implement the PDF Merger
Glad you like them!
You are really amazing. Thank you for sharing such useful projects. Could you please make tutorials on Selenium with Python?
Thanks for a great video. As someone who is in the middle of learning introductory python I was cringing at the idea of building tic tac toe and other useless projects. These are good practical ideas
👍👍
Nice! Really loving Python and CZcams tutorial videos
New subscriber 😎
Welcome aboard!
When you asked for the like on the video, I feel like you should show us how to write a python script on how to go through and leave a like on all of your videos!! lol Great video btw!! This is amazing!
Thanks! Love the cat pic! Also have you considered a Downloader for youtube to a specific that that gets the newest videos as they are uploaded?
I like how you add or remove 's' from nouns at the worst possible time. For example "a lot of the times".
I've been a photographer for over 40 years (graduated from US Navy Still Photography A School in Dec 1979) and I always get a chuckle when people say, "you can apply the same edits to all of youur photos. That is NEVER a good practice.
Change your camera workflow and you'd be surprised. Blemish fixes obviously not but basic contrast saturation and things like that mass edits are amazing. 6 years of festival photography I could get through thousands of photos in a few hours and they always looks amazing if the customer wanted to remove a pimple or something I charged extra but even then it was only a few seconds of editing. Now obviously if you're doing high end model work or something creative then batch edits wouldn't make sense unless you planned for a certain color tone
thanks Ork, great vid!
You're a game changer dude
Best videos to fallow along .😊
Interesting projects, need to investigate more Python libraries.
most helpful & inspiring, thanks brother
You can alias your shell scripts and that way you can execute your scripts as a terminal command.
For example you could name one of the aliases pdf_merger. Then from any directory in your terminal you could call pdf_merger filename1 filename2 etc. This was a really cool video.
bro how to run zhs when trying to download yt videos in windows 10
Thank You! Really good video!!
Found it hard to trust some youtube converters out there because they were so many pop ups and redirections to sketchy pages, and the ones I could trust stopped working after a while so pytube is a Godsend, thank you!
I'm glad I stuck around for that kitten! I recently had a really boring pdf to read and I searched the internet to find a pdf to mp4 file converter. I would like to code that problem.
amazing!
Gonna have to learn some python!
Amazing tutorial!
Thank you so much, great content.
This is so cool!
impressive, I hope to see more of python.
Great job! Bravo 👏
Would love to see a formal video about the library flet for ui ❤
Awesome video, thanks a lot man
A neat trick
You can include #!/bin/python3( or any supported python version) on top of your python script and no need to write python3 before file.
Just put ./ Before file and it runs like a charm.
Thank you, but what extension do you need? .sh? or still .py?
@@tycho1129 these scripts run without extension
10:30 terminal window using shell scripting.
12:40 let's see if I made mistakes.
14:10 where you would normally run your python code in your WD.
PWD: present working directory.
CD: correct directory
14:50 include this line at the top of all your shell scripts.
CD stands for Change Directory.
I'd like to learn more shell scripting and handy ways of incorporating python. Ooh! Especially something scheduled!!
vids coming!
Thanks for sharing. Any links that would direct me to instructions on how to create a simple user interface, in which once you run the program, a window would open with 1 button, which would apply the changes to selected pictures in the folder?
I will be back to this one !
A couple of things came to mind as I watched this video (insert I am not a programmer disclaimer here) this brought back some great memories of Basic Plus in computer lab 40 years ago, it seems that python has a huge root stock in basic commands I recognized "argv" as an argument string from basic.
Python maybe on my list of learning this year do you think 62 is to old to learn Python???? .. :) The second thing #2 program is basically a scraper and would not the YT algorythm not detect it and ban your IP address?
I love the videos and you may have prodded me into learning Python. Basic, Cobol, RPG, machine assy were on my plate so there is the challenge...
Thanks for the vids and the time it takes to create content, edit it and UL it to make me want to code again...:|
Hi, can you please share your vs code extension and settings you are using? I'm just fan of it :)
Excellent stuff
Thanks for this. Subscribing now.