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

КОМЕНТАРІ • 321

  • @thegreatprogrammer5937
    @thegreatprogrammer5937 2 роки тому +322

    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

    • @youssefsabban1069
      @youssefsabban1069 2 роки тому +6

      i was going to write it also

    • @pianopianist5709
      @pianopianist5709 2 роки тому +1

      Yes, very useful and saves a lot of time!

    • @hextech687
      @hextech687 2 роки тому +21

      This is life altering information

    • @benx5781
      @benx5781 2 роки тому +3

      I was going to speak same. Why not create same, its a good challange for us? like gui clipboard history ;)

    • @jagi7976
      @jagi7976 2 роки тому

      Game changer

  • @inferno-nq4vm
    @inferno-nq4vm 2 роки тому +172

    We need a lot of beginner python projects like this , these videos are really motivating us to code and also learn many new things ...

  • @mariobranco4196
    @mariobranco4196 2 роки тому +8

    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 !

  • @gdparry2727
    @gdparry2727 2 роки тому +6

    Loved the email one. Quickly adapted it so I could define own message/body/recipient and that worked too. Thanks

  • @xshadder2252
    @xshadder2252 2 роки тому +101

    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

    • @TechWithTim
      @TechWithTim  2 роки тому +13

      Thank you so much!

    • @tonytucker8651
      @tonytucker8651 2 роки тому +2

      @@TechWithTim print (‘Can you send me the link to your python course’?)

    • @TechWithTim
      @TechWithTim  2 роки тому +3

      @@tonytucker8651 programmingexpert.io

    • @jalanstudio2465
      @jalanstudio2465 2 роки тому

      @@TechWithTim I can't understand how can I remove something from another JSON file

  • @kernoelnerd
    @kernoelnerd 2 роки тому +6

    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.👍

  • @DavisDCodes
    @DavisDCodes 2 роки тому +5

    Your videos always teach me something new , thanks for keeping them so informative and making them easy to understand.

  • @insanegamer5275
    @insanegamer5275 2 роки тому +1

    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!

  • @mrvalvet9856
    @mrvalvet9856 Рік тому +1

    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.

  • @VPclay
    @VPclay 2 роки тому +12

    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.

  • @geezlouis614
    @geezlouis614 2 роки тому +6

    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! 😀

  • @grantholomeu3725
    @grantholomeu3725 2 роки тому +2

    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.

  • @Drawpros
    @Drawpros Рік тому +1

    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.

  • @bilalomar5203
    @bilalomar5203 2 роки тому

    Absolutely phenomenal video with helping me by holding my hand throughout the projects!

  • @anthony346
    @anthony346 Рік тому

    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!

  • @loulou81400
    @loulou81400 2 роки тому +3

    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! 😂

  • @tulsatrash
    @tulsatrash Рік тому +1

    Thank you very much for showing how someone can run in the command line something they have created in Python.

  • @purplemosasaurus5987
    @purplemosasaurus5987 2 роки тому

    Really great tutorial, exactly what I needed.

  • @tsuis1
    @tsuis1 Рік тому

    Great to have beginner projects like this! Really useful and interesting!

  • @thes.e.s.hcollective4377
    @thes.e.s.hcollective4377 10 місяців тому

    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!

  • @saucebosspl
    @saucebosspl 2 роки тому +7

    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 :)

  • @sfrdanserisinedestek6539
    @sfrdanserisinedestek6539 2 роки тому +2

    I find your videos really helpful! Thank you Tim!

  • @randomomega9966
    @randomomega9966 Рік тому +2

    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!

  • @mixbaal0
    @mixbaal0 2 роки тому

    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!!!

  • @alexandrohdez3982
    @alexandrohdez3982 2 роки тому

    Your videos are great from easy to pro... 👏👏👏

  • @ericlenchon4826
    @ericlenchon4826 Рік тому

    well explained. perfect for me. thanks a lot

  • @eannaoreilly7244
    @eannaoreilly7244 2 роки тому

    amazing, I probably will use this thanks

  • @just_enjoy_music9876
    @just_enjoy_music9876 5 місяців тому

    Teaching effectively is not easy and you are a master, thanks!

  • @ealrada
    @ealrada 2 роки тому +20

    @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"

  • @manu-gt9gr
    @manu-gt9gr 2 роки тому

    i enjoy it a lot, thanks!

  • @stevemorse5052
    @stevemorse5052 2 роки тому +3

    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.

  • @kapibara2440
    @kapibara2440 7 місяців тому

    Superb content Tim. Thank you !

  • @locust76
    @locust76 2 роки тому +1

    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)

  • @nggordon5889
    @nggordon5889 Рік тому

    It is really a fantastic video. You help me a lot to understand python. Thank you

  • @angelabad8294
    @angelabad8294 Рік тому

    Pretty usefull video man, keep doing great.

  • @Mallentino
    @Mallentino Рік тому +7

    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

  • @supercrusher1235
    @supercrusher1235 Рік тому

    Thank you Tech With Tim for the great tutorial. Especially the JSON explanation. I guess its an upgrade from txt files.

  • @sairudru6809
    @sairudru6809 2 роки тому

    Love ur tutorials! Please make a day in the life!

  • @s1mfo
    @s1mfo 2 роки тому +1

    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

  • @adel-a
    @adel-a Рік тому

    Great tutorial. Thanks for sharing.

  • @jackbryan9782
    @jackbryan9782 2 роки тому +1

    Nice , prompt and detailed content..

  • @shyamgurunath5876
    @shyamgurunath5876 2 роки тому +1

    Hey Tim,
    Great tutorial…I have suggestions, make a tutorial on papercut which is localhost smtp server listening on port 25.
    Thanks

  • @shaken5690
    @shaken5690 2 роки тому

    Thank you Tim!

  • @sarithaac95
    @sarithaac95 2 роки тому

    Thank you Tim ...Great job...Can you do a video on sending local notifications from android app using python

  • @manohartimothy5825
    @manohartimothy5825 2 роки тому

    Very well explained and hadeled the API .... congrats...I will be there to listen your more vidios....Thanks..Manohar

  • @oliesting4921
    @oliesting4921 2 роки тому +2

    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!

  • @giovannibillo7645
    @giovannibillo7645 2 роки тому +2

    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

  • @srishrachamalla9607
    @srishrachamalla9607 2 роки тому +1

    I was waiting 😃

  • @Shawn-rz5qu
    @Shawn-rz5qu 4 місяці тому +1

    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

  • @ib1445
    @ib1445 2 роки тому

    i love that you use go code in a python video thumbnail!

  • @MartinPHellwig
    @MartinPHellwig 2 роки тому +13

    clipboard is not a standard module, it needs to be installed for your interpreter/virtual environment.

    • @aarons9892
      @aarons9892 Рік тому +2

      got 5 seconds into the video and im immediately stuck on this. cant figure out how to get the import clipboard into vscode

  • @deepSIDEshow
    @deepSIDEshow 2 роки тому

    Great work!

  • @satyamroy8830
    @satyamroy8830 2 роки тому

    lovely tutorial... want more in java and many other things... maybe some ML and core engineering stuff.....

  • @ootbinc
    @ootbinc Рік тому

    Great video very helpful! What classifies these projects as automation projects? Thanks.

  • @feedmind4669
    @feedmind4669 2 роки тому +1

    Thanks Tim! I wish there is more of this on other language

  • @sinasmith7521
    @sinasmith7521 2 роки тому

    Tim thanks for great instruction...Is it possible to cover advent of code problems ?

  • @trevorlewis1865
    @trevorlewis1865 Рік тому

    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!

  • @sugammehta0301
    @sugammehta0301 2 роки тому

    Wow interesting! and compact

  • @sidstar593
    @sidstar593 9 місяців тому

    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.

  • @mattiparviainen
    @mattiparviainen Рік тому

    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.

  • @tommyv4980
    @tommyv4980 2 роки тому

    holy shit this kid is smart...ugh this is taking so long to learn. Thanks for everything Tim, you are an awesome teacher

  • @johnsummers101
    @johnsummers101 29 днів тому

    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)

  • @doctorwin6425
    @doctorwin6425 Рік тому

    Good, I like it
    Keep it up

  • @stevevu2816
    @stevevu2816 2 роки тому

    hopefully one day i can see you create a project that predict price for stocks or cryptos, lol. such an genius guy.

  • @gabrielroomvm6209
    @gabrielroomvm6209 Рік тому

    GREAT WORK

  • @Allin-dd8gj
    @Allin-dd8gj 3 місяці тому

    Thank you so much -------------------❣❣

  • @nostalgiadrive2645
    @nostalgiadrive2645 Рік тому

    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

  • @FiveFourThor
    @FiveFourThor 2 роки тому

    Super cool!!

  • @fzk5866
    @fzk5866 2 роки тому

    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.]

  • @tekiyuahmed9351
    @tekiyuahmed9351 2 роки тому +1

    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.

  • @dragonore2009
    @dragonore2009 6 місяців тому

    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.

  • @Harpreet06
    @Harpreet06 Рік тому +3

    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.

    • @deamooz9810
      @deamooz9810 Рік тому +1

      You can do "del data[key]" instead of "data.pop(key)", if you want to delete the item without returning the associated value too

  • @damonchase4771
    @damonchase4771 7 місяців тому

    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.

  • @HamGaming933
    @HamGaming933 2 роки тому

    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

  • @Chrissamharris
    @Chrissamharris 2 роки тому +4

    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."

  • @unmeshsonawane2869
    @unmeshsonawane2869 2 роки тому

    Thanks Man :)

  • @JesusisGodApologetics
    @JesusisGodApologetics Рік тому

    you are the best bro

  • @viridiantelamon
    @viridiantelamon 2 роки тому

    Amazing Video! :)

  • @visitdesa
    @visitdesa 2 роки тому

    Nice content. I love it

  • @danielaviv8215
    @danielaviv8215 Рік тому +2

    10:05 Ctrl/CMD+Shift+C (from vscode) will do the same much faster

  • @blevenzon
    @blevenzon 2 роки тому

    Yessss!!! Thiss!!!

  • @guillermopaez1442
    @guillermopaez1442 2 роки тому +1

    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?

    • @kausarlolz
      @kausarlolz Рік тому +1

      maybe using a for loop and storing the values in an array

    • @guillermopaez1442
      @guillermopaez1442 Рік тому +1

      @@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

  • @shubanms997
    @shubanms997 2 роки тому

    Awesome 👍

  • @codehubuz684
    @codehubuz684 2 роки тому

    Thanks a lot

  • @George-bp8tq
    @George-bp8tq Рік тому

    Fun project! How would you convert from Celsius to Fahrenheit? Thanks

  • @koferperk
    @koferperk 2 роки тому

    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)

  • @Afromix101
    @Afromix101 2 роки тому

    Love you bro

  • @bobbrendel758
    @bobbrendel758 Рік тому +1

    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?

    • @rihhard1072
      @rihhard1072 Рік тому

      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"

  • @Rottieroad
    @Rottieroad 2 роки тому

    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!

  • @irfanali1995
    @irfanali1995 7 місяців тому

    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}"

  • @aishuaksovetov
    @aishuaksovetov 2 роки тому +2

    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.

    • @TechWithTim
      @TechWithTim  2 роки тому

      Glad you like it!

    • @ramakrishna4092
      @ramakrishna4092 2 роки тому

      @@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 ..

  • @slix5953
    @slix5953 2 роки тому +2

    Could you possibly make beginner projects for raspberry pi?

  •  2 роки тому

    Nice!

  • @sanatankaushik6158
    @sanatankaushik6158 Рік тому +3

    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.

  • @pauloferesin8198
    @pauloferesin8198 2 роки тому +3

    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)"

    • @pauloferesin8198
      @pauloferesin8198 2 роки тому

      Nevermind, I had to rename my python file

    • @shibby8788
      @shibby8788 Рік тому

      @@pauloferesin8198 what did you name the file too?

  • @Levi-fw9yg
    @Levi-fw9yg Рік тому

    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

  • @rufuspub
    @rufuspub 2 роки тому

    If your security team has disabled clipboard, does this still work or override that? When copy/paste from workstation to VM server via RDP?

  • @pranavnyavanandi9710
    @pranavnyavanandi9710 2 роки тому

    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.

  • @wiztech2683
    @wiztech2683 2 роки тому

    which programing IDE are you using bro ?
    its look like vs code
    its just my prediction

  • @k3ono345
    @k3ono345 2 роки тому

    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?