Python Automation with ChatGPT

preview_player
Показать описание
Python Automation with ChatGPT | Write Python code to connect to OpenAI API and generate automation scripts in seconds!

#python #chatgpt #techworldwithnana

▬▬▬▬▬▬ PRE-REQUISITES ⏰ ▬▬▬▬▬▬

In this video we are going to learn how to use Python to automate things for us so we don't have to do them manually. We're going to automate 2 use cases:
First we will write a Python program that takes any blog article or any web page and it extracts
all the headers from that page or article and then it translates all those headers to Spanish and saves it into its own HTML file so you can open it in the browser and basically see all the headers of that specific blog article translated in Spanish.
In the second use will be that we're going to write a Python program that goes through all the files in our downloads folder it then checks if we have any files that are older than 30 days or were last used
more than 30 days ago and it takes all these files and puts that into a new folder called "to_delete" which we can then review and basically delete if needed. So basically it helps us clean up our messy downloads folder with a bunch of old downloaded files in there.

But here's even more interesting thing we will do we will use an artificial intelligence tool that you probably have already heard of a million times called ChatGPT and we will tell Python to use
ChatGPT's API or the underlying API that ChatGPT is also using to generate the Python scripts for those two use cases that I mentioned.

▬▬▬▬▬▬ L I N K S 🔗 ▬▬▬▬▬▬

▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬
0:00 - Intro - What we are automating?
02:37 - Why Python for Automation?
04:39 - Connect to OpenAI API
06:45 - Create account and API key
08:07 - Pre-Requisites for demo
09:15 - Write Python script to connect to OpenAI
33:29 - Install Library
35:17 - Execute Python Script
40:15 - Accept Prompt Input to send to OpenAI
53:11 - UC 1: Python Automation Script for Blog Post Translation
1:08:01 - UC 2: Python Automation Script for Cleaning Downloads Folder

▬▬▬▬▬▬ Want to learn more? 🚀 ▬▬▬▬▬▬

▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬

▬▬▬▬▬▬ Courses & Ebooks & Bootcamp 🚀 ▬▬▬▬▬▬
Рекомендации по теме
Комментарии
Автор

Hope this video was useful for you! 💡 Let me know in the comments, what use cases would you be interested in and generally what video topics you would like to see?

TechWorldwithNana
Автор

I got a job as DevOps engineer because of your YouTube channel I am able to cleared 10 companies interview ...Thank you nana 👍😊😊

rushikeshdeshmukh
Автор

Hi, I am a man living in South Korea, and I am an AI researcher. My background is not at Computer Science, so I am afraid whether I can work as an engineer in the near future. However, thanks to you, not only this course, I am getting so much help from you. Thank you so so much for providing us this much nice-quality videos. I hope you always be happy. Have a great day, Nana :)

Trumanshoww
Автор

I was Clipper programmer (90´s) and tried to start learn Python (not very dedicated though) few times in the past. You did an amazing job explaining items like the "import" at the begining of the Python program and you did explain those in a very direct and clean way.

I am truly amazed by your knowledge and the way you touched each and every line of the code you presented, even the one that AI created.

Thank you a lot @TechWorldwithNana !!!!

Great job!

valterpereiracjr
Автор

If I haven't commented yet, let me say that I've watched many of your videos and you're one of the best tech instructors out there!

EcleticMusicFilm
Автор

I'm a technical writer.
The way you work reminds me a lot of the way that I work. (I don't run into that often.)
I mean the way that you explain things, the way you pause to explain the underlying (and transferable) concepts, etc., explain other options (and why you are going with the one that you choose)...

Really excellent.

daedalusjones
Автор

Guys let's make Nana hit a million subs

charlesyaw
Автор

Awesome.. it definitely complement developers time but may not replace entirely

praveens
Автор

You are best tutor in youtube tech as a female version.

ananjohar
Автор

Simple, but yet the most ingenious use (imo) of the openai api i've seen so far.

djendjou
Автор

These tutorials... Especially make chatgpt One special

ovskihouse
Автор

👋 I just wanted to take a moment to express my appreciation for the 👌 examples you use in your content to illustrate important concepts. In particular, I found your recent piece on how audiences can reach multiple outcomes 🤔 to be both interesting and informative. I hope you will continue to create more content like this in the future. Thank you for all your hard work and dedication to producing high-quality content for your audience. 😊 Best regards, Nana

fromdil
Автор

One of the best teachers I've ever known

drown
Автор

U r very well ahead of time...thanks for this

sagarahire-ysuj
Автор

I want to say my skills improved in DevOps so fast, thanks to you.

for this, its too informative as i expected from you🙂💥

nagdali
Автор

Superb! Thank you so much Nana! This is what all I need to start using OpenAI's ChatGPT! :)

maryannsalva
Автор

Thank you Nana. I will probably have to visit more often your channel. :-)

yt
Автор

I'm super happy to find Nana's channel. All videos that I've viewed are high quality -clear, logical and well explained. Thank you, Nana!

erichuang
Автор

the way to teach concept explanation is excellent. please make more videos

AbuFaizal
Автор

I m BE ECE 2012 pass out . Last 10 years I m LECTURE in reputeted institute . In college I learn c c++ n java but not interested in coding. Currently I started learning python.

sonujain