3 Python Automation Projects - For Beginners
Вставка
- Опубліковано 16 тра 2024
- Welcome back to another UA-cam video! In this video I'm going to be showing you 3 different Python Automation Projects for beginners! These are simple projects that are meant to show you a real world use case of Python! So even if you don't use these specifically for automation, you will be learning a lot and so I hope you enjoy!
💻Thanks to Altium Designer for sponsoring this video. Checkout the best PCD design software on the market by signing up for a FREE trial here: www.altium.com/yt/techwithtim
💻 ProgrammingExpert is the best platform to learn how to code and become a software engineer as fast as possible! Check it out here: programmingexpert.io/tim and use code "tim" for a discount!
📄 Resources 📄
Code In This Video: github.com/techwithtim/3-Pyth...
Weather API Website: openweathermap.org/
Fix Pip (Windows): • How to Install Pygame ...
Fix Pip (Mac): • How to Install Pygame ...
⭐️ Timestamps ⭐️
00:00 | Python Automation
01:35 | Altium Designer
02:38 | Environment Overview
03:22 | Project #1 - Multi-clipboard
29:35 | Project #2 - Weather Fetcher
42:12 | Project #3 - Sending an Email
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
👕 Merchandise: teespring.com/stores/tech-wit...
📸 Instagram: / tech_with_tim
📱 Twitter: / techwithtimm
⭐ Discord: / discord
📝 LinkedIn: / tim-ruscica-82631b179
🌎 Website: techwithtim.net
📂 GitHub: github.com/techwithtim
🔊 Podcast: anchor.fm/tech-with-tim
🎬 My UA-cam Gear: www.techwithtim.net/gear/
💵 One-Time Donations: www.paypal.com/donate?hosted_...
💰 Patreon: / techwithtim
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
⭐️ Tags ⭐️
- Tech With Tim
-3 Python Projects
- Automated Projects
- Automated Python
- Programming Automation
⭐️ Hashtags ⭐️
#TechWithTim #Python #AutomationProjects
Hey there a quick tip! On windows if you turn on clipboard history, and then while pasting you press Windows + V key instead of Ctrl V, you will have options of previous items
i was going to write it also
Yes, very useful and saves a lot of time!
This is life altering information
I was going to speak same. Why not create same, its a good challange for us? like gui clipboard history ;)
Game changer
We need a lot of beginner python projects like this , these videos are really motivating us to code and also learn many new things ...
Sure!
How’s your journey going?
I’m a beginner in python, and coding in general and your videos help me a lot. Thank you for this and keep up the good work !
Loved the email one. Quickly adapted it so I could define own message/body/recipient and that worked too. Thanks
You don't need to apologize :D It's a tutorial for beginners so you are doing a great job of keeping it slow and explaining each line of code. As a beginner, I love your tutorials because they are very clear. The great thing is that you do not only use something like for example JSON but always give a small background of it as well
Thank you so much!
@@TechWithTim print (‘Can you send me the link to your python course’?)
@@tonytucker8651 programmingexpert.io
@@TechWithTim I can't understand how can I remove something from another JSON file
Great video, great explanations, great "case studies". After decades in programming, I am just starting with Python (primarily just for fun) - and enjoyed this video very much.👍
Your videos always teach me something new , thanks for keeping them so informative and making them easy to understand.
You are a legend, every time I watch your video I learn something new even if I knew that topic before! Thank you sooo much and keep up the great work!
Hey, Tim! Hands-on projects is the easiest and most fun way to learn. Thank you for these tutorials, you did a great job explaining what you're doing. I had fun with the Weather API. Looking forward for more project-based tutorials.
Even tho I had no idea about json and a lot of other stuff, you explained it really good. This video made me more confident that I can learn programming.
In regards to your multi clipboard program, Just wanted to say that this is cool. It’s nice to see programmatic thinking applied to code for something other than web development. Don’t get me wrong I love web development it is how I got into programming! 😀
Great video! Even if the programs are fairly beginner-level, they had applications that I hadn't been taught before. I think most people could benefit from them.
Thank you A LOT! This was an extremely helpful, straightforward and clear tutorial that taught me a bunch of interesting things i'm definitely going to be using.
I also had a lot of fun during the tutorial and i was genuinely interested in the topic.
Absolutely phenomenal video with helping me by holding my hand throughout the projects!
This is amazing. I'm going to have a go at all these. You made it very easy to follow, great level of detail. Thanks!
Automation is one of the thing I love with Python, and it's the reason why I try to master it. Recently I made a little script to put all my Download content files and organise them on différents folder 📂 based on the files extension...will try to automate my trash folder cleaning now... There is a lot of stuff to do with os module.. Nice video, I think I will join programing expert next month and try to master Python! 😂
Thank you very much for showing how someone can run in the command line something they have created in Python.
Really great tutorial, exactly what I needed.
Great to have beginner projects like this! Really useful and interesting!
I used to work in a call center and messing with the clipboard to detect and act on or reformat case details was my first complete programming experience. I had a semi auto CRM in the end and worked about 2 hours a day to hit my target before hitting the foosball. That was with AHK, cant wait to revisit that it python!
I'm starting in Python so it's great to find videos like this. I've decided to mash the second, and the third project together. I'm making a program that will send me an email with the current weather outside. Defining both programs as functions, and trying to juggle data between them is a great exercise about functions and program structure. Wish me luck, I think tomorrow it's gonna be done :)
Did you manage to do this?
awesome idea, I want to do this as well, how did you do?
I find your videos really helpful! Thank you Tim!
Love all the projects, couldn't fully complete the third email project due to google cutting support for third party apps, but it was still fun to learn how to do it!
Nice to remember the first videos I saw in your channel some years ago. you were almos a kid, now a young man. greetings keep up with this von rossum magic language! Cheers!!!
Your videos are great from easy to pro... 👏👏👏
well explained. perfect for me. thanks a lot
amazing, I probably will use this thanks
Teaching effectively is not easy and you are a master, thanks!
@Tech With Tim, it is not necessary to convert Kelvin to Celsius by substracting 273.15! The API call has three optional parameters including "metrics" that is used to choose the units of measurement! By default it is set to "standard". You just need to change it to metric. Here is the revised code:
request_url = f"{BASE_URL}?appid={API_KEY}&q={city}&units=metric"
Thanks man
Great!
Nice, "imperial" for fahrenheit
i enjoy it a lot, thanks!
Thank you Tim for yet another great and informative video.
After reading one of the comments below, I have found out the Windows has a Clipboard History feature which is great.
But, Tim's program has some other uses which I am going to test out later. Tim's program has at least 2 advantages, 1/ the clipboard data is persistent, and 2/ you can use your names for the keys, whereas the Window History is chronological.
A point on the Weather Fetcher, my city will not work! All the cities and towns around me work just fine, but Goleta does not. Even the small hamlet of Isla Vista comes up just fine, and that is about 1.2 miles away.
Superb content Tim. Thank you !
35:27 you can put your url parameters in a dict and pass it to requests.get that way.
so:
params = { 'appid':API_KEY, 'q':city}
response = requests.get(BASE_URL, params=params)
It is really a fantastic video. You help me a lot to understand python. Thank you
Pretty usefull video man, keep doing great.
An amazing video for beginners. Although i couldn't complete the last project due to google no longer allowing "Less secure app access" this taught me a lot
Thank you Tech With Tim for the great tutorial. Especially the JSON explanation. I guess its an upgrade from txt files.
Love ur tutorials! Please make a day in the life!
Thanks for your great video. I just have one question;
In the clipboard project, is there any way I can make more organised list? I want to make my new data show in next line. So like first data in first line, second data in second line
Great tutorial. Thanks for sharing.
Nice , prompt and detailed content..
Hey Tim,
Great tutorial…I have suggestions, make a tutorial on papercut which is localhost smtp server listening on port 25.
Thanks
Thank you Tim!
Thank you Tim ...Great job...Can you do a video on sending local notifications from android app using python
Very well explained and hadeled the API .... congrats...I will be there to listen your more vidios....Thanks..Manohar
Hi Tim, can you pls make a video to automate some office task using python. Working and grabbing data off PDF docs and adding it to excel (or sql) for data analysis and viz. Using airflow to automate running python scripts at a certain time of day. I would also appreciate if I can learn Data Engineering from you!
Amazing video, i learned so much and on top of that I was genuinely having fun! keep up the good work, this is really useful motivating for beginners like me
I was waiting 😃
This is an amazing tutorial. My first follow along project. I am still very new to python. I am watching your video and asking chatgpt for indepth explanation. Thanks @
Tech With Tim
i love that you use go code in a python video thumbnail!
clipboard is not a standard module, it needs to be installed for your interpreter/virtual environment.
got 5 seconds into the video and im immediately stuck on this. cant figure out how to get the import clipboard into vscode
Great work!
lovely tutorial... want more in java and many other things... maybe some ML and core engineering stuff.....
Great video very helpful! What classifies these projects as automation projects? Thanks.
Thanks Tim! I wish there is more of this on other language
Tim thanks for great instruction...Is it possible to cover advent of code problems ?
Hey, Tim! New to programming, your videos have been super helpful. Question on the first project. When saving, if I don't have anything copied, I get what looks like html tags saved inside the quotation instead of it being blank. Any ideas how I can fix? Thanks in advance to whoever can help!
Wow interesting! and compact
Hey admin, I would like to know if this python scripting is useful for VLSI(semiconductor) industry to? Any suggestions are welcome to learn python scripting for vlsi.
10:08 by the way.
You can open the location in your CMD just by typing 'cmd' in the url field in your windows explorer and you will open CMD in that very same location.
holy shit this kid is smart...ugh this is taking so long to learn. Thanks for everything Tim, you are an awesome teacher
Great video.. I think you should also go over sitting up an environment and why you would use that. I'm still learning python and its a bunch of pip install, conda install, and .env install and i did not realize at first that essentially you only need one.... or maybe not (I'm still new lol). and also why you even need that in the first place cause it seems to cause more errors for me (running m2 chip on mac)
Good, I like it
Keep it up
hopefully one day i can see you create a project that predict price for stocks or cryptos, lol. such an genius guy.
GREAT WORK
Thank you so much -------------------❣❣
Just a quick question Tim. I was wondering where do u get your project ideas from, like if i were to take up a mini project like this on my own and work on it what can i refer to
Super cool!!
That was awesome bro🌹🌹
Just keep going and make more videos like this...
[Notice that I was using pyperclip for the first project (pip install pyperclip) which is completely the same as the clipboard module.]
that saved me
Thank you for the tutorial. Your video profile/avatar at the right bottom corner is not necessary. It sometimes blocks the output result in terminal.
I don't normally use Python, but I wrote a script in it that automates a process for me. I use it to populate or update a huge JSON file instead of manually updating it. I run the script every so often to ensure my data in the JSON file is up to date with the web project I'm working on.
If anyone wants to add delete to the multi-clipboard, this is how I did it, I just added an extra command:
elif command == "delete":
key = input("Enter a key: ")
if key in data:
data.pop(key)
save_items(SAVED_DATA, data)
print("Data deleted")
else:
print("Key does not exist")
If you want to do the third project, you have to create an app password on your google account for it and then use that as your password input instead of your actual gmail password.
You can do "del data[key]" instead of "data.pop(key)", if you want to delete the item without returning the associated value too
clipboard isnt recognized by my system and im running python 3.10. if you are having this issue as well, my IDE (pycharm) when i hovered over the word clipboard right next to where I was importing it, it gave me the option to install the clipboard module and I did and it took like 5 seconds and worked.
If youre on windows instead of copying the path from file explorer you could just type cmd and it opens command prompt and does the cd command to that folder automatically
FYI for people struggling with the email task. Re. Google Security: "To help keep your account secure, starting May 30, 2022, Google will no longer support the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password."
Thanks Man :)
you are the best bro
Amazing Video! :)
Nice content. I love it
10:05 Ctrl/CMD+Shift+C (from vscode) will do the same much faster
Yessss!!! Thiss!!!
Hi Tim, i've discovered your channel recently and i found ir very clear. I want to ask you for the API project, how would you do to obtain more data at once, let's say, the weather of all cities of a given list of states, or all cities in USA, etc., is this possible?
maybe using a for loop and storing the values in an array
@@kausarlolz yes, you're right. At the moment I asked the question, I was looking for something more like a SQL clause in the query, but if it's not possible, your solution will work
Awesome 👍
Thanks a lot
Fun project! How would you convert from Celsius to Fahrenheit? Thanks
to delete a item in json you can use this code:
elif (command == "delete"):
key = input("Enter a key: ")
data.__delitem__(key)
save_data(SAVED_DATA ,data)
Love you bro
Great video Tim. Any reason you did not use a python dictionary instead of the json file for the clipboard project? Was it just to introduce json, or is it better programmatically?
I was curious as well, this is what I found from SO: "JSON is data exchange format. You convert to it when you need to make the data available externally. Using it internally makes about as much sense as storing numbers in strings"
Can someone help me on this. Line 28 on clipboard project has an attribute error. Module clipboard has no attribute paste. How do i fix this? Amazing video Tim!
I was trying to do this project, recently there have been change in calling the API , now instead of a city name you should write latitude and longitude, like this:
f"{BASE_URL}?lat={lat}&lon={lon}&appid={API_KEY}"
multiclipboard is a project I didn't hear of before and I'd love to use it.
It's cool when you hear this type of unusual ideas instead of 100 times repeated similar ones that are not even useful for a regular user.
Glad you like it!
@@TechWithTim hello Tim
Can a explain memory management in python
How integers ,floats ,strings. ,list, tuples ,are stored in memory I have got many questions in mind pls can you make a video on this topic it will be very usefull to many of us ..
Could you possibly make beginner projects for raspberry pi?
Nice!
Hello everyone,in case you cannot turn on the less secure apps,I am so sorry to tell but gmail has stopped the support for this setting. So you can try another email service like hotmail.
Thanks Tim, great ideas!
I just can't get around this error:
"AttributeError: partially initialized module 'clipboard' has no attribute 'paste' (most likely due to a circular import)"
Nevermind, I had to rename my python file
@@pauloferesin8198 what did you name the file too?
Regarding the clipboard, in order to delete everything from the json file, data = {} (overwriting our dict with empty ones) and dump it save_data(SAVED_DATA,data). all this in a new elif statement
If your security team has disabled clipboard, does this still work or override that? When copy/paste from workstation to VM server via RDP?
I was wondering how I could automate GUI applications. Like farming free currency in an ANDROID game in the background. Or automating other gui tasks like setting an alarm. I'm not sure where to starting looking for; and I have a decent grasp on python. Any pointers would be appreciated, thanks.
which programing IDE are you using bro ?
its look like vs code
its just my prediction
Hey! for project #1:
inside of my terminal on the top right. I noticed yours says 'Python'. My screen is only showing 'PowerShell' and I am only able to change it to gitbash, ubuntu, ect. No python option available. How do it fix that?