3 Python Automation Projects - For Beginners

Today i'm going to show you how you can automate your life with these 3 fun, simple yet effective projects. These projects illustrate the power of knowing Python & the automation techniques.
Learn more about python from this FREE guide from HubSpot! clickhubspot.c...
Free Currency Converter API: freecurrencyap...
Code in this video: github.com/tec...
Install Pygame (Mac): • How to Install Pygame ...
Install Pygame (Windows): • How to Install Pygame ...
🎓 Premium Courses 🎓
🏢 CourseCareers - techwithtim.ne...
🔗 BlockchainExpert - algoexpert.io/... (use code “tim”)
💻 ProgrammingExpert - programmingexp... (use code “tim”)
🎓 Free Courses 🎓
📚 Introduction To Software Development: techwithtim.ne...
⏳ Timestamps ⏳
00:00 | Video Overview
01:26 | Currency Converter
18:49 | KZread Video Downloader
29:51 | Automated File Backup
🔗 Socials 🔗
📸 Instagram - / tech_with_tim
🐦 Twitter - / techwithtimm
💬 Discord - / discord
🤝 LinkedIn - / tim-ruscica-82631b179
🌐 Website - techwithtim.net
💾 GitHub - github.com/tec...
🔗 Support 🔗
👕 Merch - teespring.com/...
💵 Donations - www.paypal.com...
🙏 Patreon - / techwithtim
🔖 Tags 🔖
- How To Create A Currency Converter In Python
- KZread Video Downloader Using Python
- Automated File Backup Tutorial
Hashtags
#pythonprogramming
#pythonai
#automation

Пікірлер: 60

  • @TechWithTim
    @TechWithTim8 ай бұрын

    Learn more about python from this FREE guide from HubSpot! clickhubspot.com/ttd

  • @arnot4499
    @arnot44998 ай бұрын

    For the backup program (this only applies to windows). Rather than using a python scheduler which needs the python script to be running 24/7 (and hence to be restarted everytime the computer is restarted). You can use Windows Task Scheduler to call your script on a schedule that you set, and it will persist even with restarts. Obviously the video is a python tutorial, but if anyone is interested in building something like the backup script I think it is a useful addition. Thanks for the great vid as always!

  • @garrettsmith315
    @garrettsmith3158 ай бұрын

    I feel like you're speaking directly to me in every video! Your Flask tutorials have been on my mind lately, dreaming of launching an API and the build process has been very enlightening

  • @DonnieX6
    @DonnieX68 ай бұрын

    Thank you so much, Tim! These three examples have a lot of stuff I need in my next project, perfect for me as a quite beginner! :)

  • @GBroSM
    @GBroSM6 ай бұрын

    i love how you explain every single line of code. University professor should start doing that lol

  • @irfanykywz
    @irfanykywz8 ай бұрын

    simple and clear naration, i like it

  • @esrx7a
    @esrx7a8 ай бұрын

    Thanks for the reinforcement for the beginners

  • @landorandaza5431
    @landorandaza54313 ай бұрын

    The last project was awesome!

  • @bbbb4g
    @bbbb4g5 ай бұрын

    I can't believe I actually watched the entire video. I gained a lot from it, really

  • @Tutoriale.B
    @Tutoriale.B8 ай бұрын

    Just a small addition, if you have 2 or more mp4 types, like 720p and 1080p, it will download the 720p version all the time. I've tested this against a few online downloaders / a few videos. Not a big issue, most of the time, but still, better to know about it :)

  • @tanvirahmed1959

    @tanvirahmed1959

    7 ай бұрын

    I want to the answer too

  • @alimihakeem841
    @alimihakeem8418 ай бұрын

    Thanks so much Tim. I have really learn alot from your valuable content.

  • @marociam1040
    @marociam10408 ай бұрын

    Thank you for these amazing videos 🙏

  • @dng7470
    @dng74707 ай бұрын

    Thank you Tim.

  • @mmGsix
    @mmGsix8 ай бұрын

    Sir, you are very* good at the things you do. Tyvm for sharing. 🙏

  • @KrittapasChumthong
    @KrittapasChumthong2 ай бұрын

    🎯 Key points for quick navigation: 00:00 *🤖 Automating life with Python through three projects: currency converter, KZread video downloader, and automated scheduling software for backing up directories.* - Three projects illustrating Python automation: currency converter, KZread video downloader, automated scheduling software. 01:27 *🛠️ Setting up a currency converter project in Python.* - Installing the `requests` module to call an API. - Using a free currency API to convert currencies. - Formatting URLs and handling potential errors. 05:22 *🌐 Accessing and using a free currency API.* - Acquiring a free API key for the currency API. - Setting up the base URL and formatting it with the API key. - Making a function to call the API and retrieve currency conversion data. 06:48 *🔄 Implementing the currency conversion function.* - Formatting the URL with query parameters for currency conversion. - Using a try-except block to handle potential errors. - Printing out the currency conversion rates in a readable format. 10:12 *🖨️ Improving the currency conversion output.* - Refining the output to show only the currency conversion rates. - Adding user input to specify the base currency for conversion. - Implementing a loop for continuous currency conversion requests. 18:22 *🌐 Project 1: Currency Converter* - Use an API to fetch exchange rates. - Convert a dollar amount to other currencies by multiplying it with the rate. 18:52 *📹 Project 2: KZread Video Downloader* - Use the `pytube` module to download KZread videos. - Utilize `tkinter` for basic GUI elements like file dialogs. 29:52 *💾 Project 3: Automatic Folder Backup* - Use the `schedule` module to schedule tasks. - Copy folders to a destination directory, naming them with the current date. 37:38 *🐍 Lambda functions in Python* - Lambda functions can be used to pass functions as arguments without calling them directly. 38:37 *📅 Scheduling tasks in Python* - Use the `schedule.run_pending()` method to schedule tasks to run at specific intervals. - Sleeping for a short period between iterations allows for checking and running scheduled tasks. - Tasks can be scheduled to run at any desired interval, such as every day, every week, etc. Made with HARPA AI

  • @MuhammadUmar-iq4on
    @MuhammadUmar-iq4on2 күн бұрын

    Should I add these projects to my cyber security portfolio or these are not related or are too beginner projects.... reply please

  • @Yamikgaming
    @Yamikgaming8 ай бұрын

    You are awesome! Thank you!

  • @DeltaXML_Ltd
    @DeltaXML_Ltd8 ай бұрын

    Great video! 😀

  • @fatimanoor2497
    @fatimanoor24978 ай бұрын

    Wow Tim you are gem😊😊😊

  • @MelkeyDev
    @MelkeyDev8 ай бұрын

    good video Tim

  • @TerryLoughran
    @TerryLoughran28 күн бұрын

    Good morning Tim, I am having a issue with requests package. I have looked up so many answers but i cant seem to figure a work around can you tell me how it works on your system? PS. I'm on am M1 mac Thanks, Terry

  • @mkk-un9nz
    @mkk-un9nz8 ай бұрын

    thanks Tim❤

  • @adelinadonisa
    @adelinadonisa8 ай бұрын

    I did the same code in visual studio as you did, and it doesn't run, output an error that say pytube module is not defined and I did thr comand pip install pytube in pycharm and it says thats already satisfied

  • @Green_44_
    @Green_44_8 ай бұрын

    Great video 👍🏻

  • @amitpoudel7672
    @amitpoudel767224 күн бұрын

    idk why youtube video downloader script is not working its throwing me error like bad request. i checked the url & everything is correct but its throwing me that error. is it due to bug of pytube or what?

  • @daryadil8035
    @daryadil80355 ай бұрын

    Well we are not receiving any email verification message during sign up for currency converter API.

  • @kushangshah-be7hn
    @kushangshah-be7hn2 ай бұрын

    how long does it take to featch API in currency?

  • @rishiraj2548
    @rishiraj25488 ай бұрын

    Thanks

  • @co48756
    @co487568 ай бұрын

    Is there a more elegant way of having the Python script running all day? Like if you run the script in the Terminal or something else maybe? I don't like the idea of having VScode open all day 24/7.

  • @arnot4499

    @arnot4499

    8 ай бұрын

    If you are on windows, imo the best way is to use windows task scheduler to schedule the script instead of a python scheduler. Task scheduler runs in the background anyway and doesn't need to be started every time the PC restarts. The downside is it is a windows feature; not sure if Linux has an alternative, but Mac doesnt

  • @Jon_405

    @Jon_405

    8 ай бұрын

    You can run it without vs code by using powershell or cmd to run it then keep that window open. It shouldn't really need to take up any resources. But windows scheduler is probably a better long-term solution.

  • @SwekeR4603
    @SwekeR46038 ай бұрын

    Can someone tell me the theme name 🤔

  • @lucianoaugustob
    @lucianoaugustob8 ай бұрын

    I'm getting this error on the second project: I'm using a Mac M1. Does anybody knows how to fix it ?

  • @buckwheatboi

    @buckwheatboi

    8 ай бұрын

    same specs and problem

  • @predygamedev
    @predygamedev8 ай бұрын

    Can it be used to also download the mp3 from the youtube video?

  • @co48756
    @co487566 ай бұрын

    Is anyone else getting 720p when they try this code for the KZread downloader? And I checked, the video I tested on had up to 1080p available.

  • @MatrixAbuz17
    @MatrixAbuz178 ай бұрын

    To be honest, you should just finalize a ‘fix pip’ video rather reusing the pygame video. It’ll be short and simple but more searchable for average users.

  • @I_do_not_want_to_reply

    @I_do_not_want_to_reply

    8 ай бұрын

    Yes

  • @rantalbott6963
    @rantalbott69638 ай бұрын

    KZread downloader doesn't work on Python 3.8 on Linux Tim is using 3.9, and got version 15 of pytube. I normally use 3.8, and its latest pytube is 12. I get HTTP error 410 on every video I try with 3.8 I also have 3.10 installed. pip3.10 gets pytube 15.0.0, and that works correctly using python 3.10 instead of 3.8

  • @adelinadonisa
    @adelinadonisa8 ай бұрын

    Well.... It doesn't open the window to choose the folder I want video to be downloaded, it just stays in run mode after typing the yt link.... It works properly only in debugging mode... Any idea why this happens?

  • @maliekfranklin4712
    @maliekfranklin47128 ай бұрын

    um.. i dont have a website url nor company name isnce im juts a beginner trying to learn python , and hubspot is asking for those 2 pieces of info, what should i do?

  • @tdexmedia

    @tdexmedia

    8 ай бұрын

    Just put nil

  • @omarjones8481

    @omarjones8481

    8 ай бұрын

    make one up. it only needs to be formatted right.

  • @geoffreychinot3244
    @geoffreychinot32448 ай бұрын

    Hey, great video again . However, are you sure that the two lines root = tk.TK() and root.Withdraw() are needed in you script ?

  • @melihbedirhan2173

    @melihbedirhan2173

    7 ай бұрын

    Yeah, I’m also curious about it. How did tkinter library needed for this project

  • @komodo3784
    @komodo37848 ай бұрын

    19:06 Why is your vscode logo able to switch color?

  • @therabidpancake1
    @therabidpancake12 ай бұрын

    I typed it exactly the same way you did and I can not get it to work .

  • @ilkmod
    @ilkmod8 ай бұрын

    hey tim can you help me? ←[34m i get this instead of color changing colorama

  • @Edd211
    @Edd2118 ай бұрын

    how to install things without using pip bs?

  • @sproutboot
    @sproutboot6 ай бұрын

    Why is it called automation project

  • @Suoh2
    @Suoh28 ай бұрын

    First

  • @raymondkadzashie591
    @raymondkadzashie5918 ай бұрын

    I KEEP GETTING INVALID CURRENCY AFTTER I RUN THE CODE I DID EVERYTHING RIGHT BY FOLLOWING THE VIDEO

  • @oliverzygo
    @oliverzygo8 ай бұрын

    :)

  • @Just_A_Tech.._
    @Just_A_Tech.._8 ай бұрын

  • @mcmuf3808
    @mcmuf38088 ай бұрын

    Can anyone solve my issue? For project 2, the youtube to mp4 convertor, it threw an error that said: "python: command not found". Here is my code and I am working on a mac: from pytube import KZread import tkinter as tk from tkinter import filedialog def download_video(url, save_path): try: yt = KZread(url) streams = yt.streams.filter(progressive=True, file_extension="mp4") highest_res_stream = streams.get_highest_resolution() highest_res_stream.download(output_path=save_path) print("Video downloaded successfully.") except Exception as e: print(e) def open_file_dialog(): folder = filedialog.askdirectory() if folder: print(f"Selected folder: {folder}") return folder if __name__ == "__main__": root = tk.Tk() root.withdraw() video_url = input("Please enter a KZread URL: ") save_dir = open_file_dialog() if save_dir: print("Started download...") download_video(video_url, save_dir) else: print("Invalid save location.") thanks!

  • @rantalbott6963

    @rantalbott6963

    8 ай бұрын

    It looks like you might not have Python installed. Are you using Windoze? I believe that requires you to do your own install. On my Ununtu 20.04 system, just plain "python" points to Python2: I have to type "python3" to get Python 3.8. I've read that support for Python 2 is being dropped by some. Maybe you only have Python 3?

  • @mcmuf3808

    @mcmuf3808

    8 ай бұрын

    @@rantalbott6963 im using mac and yes i have python 3

  • @alimihakeem841
    @alimihakeem8418 ай бұрын

    Thanks so much Tim. I have learnt alot from your valuable content. I love the way you explained