Automating Boring Tasks Using ChatGPT and Python
Вставка
- Опубліковано 16 чер 2024
- In this video, we're going to automate tasks such as sending emails/messages, plotting graphs and web scraping with ChatGPT. We'll automate all of this using ChatGPT and Python.
🔥 My FREE Cheat Sheets (ChatGPT, web scraping, data science): artificialcorner.substack.com...
🔗 Link: chat.openai.com/
Social Media
===========
🎮 Discord: / discord
🔗 LinkedIn: / thepycoach
🐥 Twitter: / thepycoach
✏️ Medium: / frank-andrade
😺 GitHub: github.com/ifrankandrade
My Courses
==========
🔥 Join My Automation Course in Python: www.udemy.com/course/automate...
🔥 Join My Python for Data Science Bootcamp: www.udemy.com/course/python-f...
🔥 8-hour Web Scraping Course in Python: www.udemy.com/course/web-scra...
💰 Make money using your Programming & Data Science skills: codelessearnmore.teachable.co...
Support My Work
==============
💵 PayPal: www.paypal.com/donate/?hosted...
--------------------
Content:
0:00 Intro
0:49 Plotting a graph with chatGPT
4:00 Sending a WhatsApp message with chatGPT
5:59 Sending an email with chatGPT
9:33 Web scraping with chatGPT
Hey guys, when it comes to web scraping with ChatGPT, simple prompts like "web scrape website X using Python" won't always work. It worked in this video, but it didn't work for sites like Amazon and Twitter. Anyway, I found a trick to scrape any website with ChatGPT. For more details, check out this video 👉ua-cam.com/video/GapR6gIIHDs/v-deo.html
I used it while learning Nextjs and I have to be honest, it accelerates the learning process so much. For example, there were some questions for certain scenarios I had in mind, even when I read the whole documentation and important API reference, I did not know how to best implement it, like a best practice. I asked it some questions, got it to regenerate the answer a few times and kept adding conditions here and there. Honestly, it was not perfect, but it guided me in the right direction most definitely.
Can't wait for them to update it with more recent data.
Chat GPT needs to be renamed Jarvis and disney just needs to eat that camel, because AI's named Jarvis is not something you can copyright, you can argue that you can, but it's a name and you can not copyright an actual name, not even for what ever use case, that's why so many people have the beatiful name Bob.
Wow great video Frank! It definitely got my mind thinking of many possibilities using this AI!
Thanks Frank! I believe the nature of teaching and learning will need to be rethought with a focus on creativity, critical thinking and other things computers aren’t good at
Agree!
@@ThePyCoach I showed my nana GPT. First she was like "thats sick". And then she goes "homework is for nerds now".
Anything a human does a computer will do 100000009000 better.
thank you so much, this will be of great help ☺️☺️
It does simple jobs well but as things get complicated, it starts to lose the plot so I use it more of an assistant to help me with small functions. Whenever I asked it help me with bigger problems, it does a lot of mistakes and it ends up costing me more time to fix those bugs. Although still early days so future is indeed very exciting. I am fairly confident you will need programmers although more the kind you can break down a problem into smaller problems and then can delegate a lot of those smaller problems to AI and can then bind the results together.
I often just point out where the bug is and ask it to rewrite its previous code, usually works well.
@@jantuitman It works sometimes but sometime it doesn't. Not so reliable in my experience.
I dont see how it is physically possible that it takes more time to "fix those bugs" than starting from scratch.
Not sure if u have tried but if u ask it to continue the code it will pickup where it left off
@@VRTimeFun Of course for example recently ChatGPT has suggested packages that are either deprecated or not maintained and also proposed wrong methods i.e. methods that don't even exist. I still find it very helpful when it works but sometimes these bugs just take more time fixing. But that is how it is. Overall I like it but just wanted to point out what I have been experiencing.
Thanks for your sharing
i have no clue how to write JS or JQUERY, but today i was wrestling with how to serverside render datatables in django, and wrote 100 lines of JS and JQ with ChatGPT-3 and a sprinkle of StackOwerflow. It was a hasle but i wouldnt be able to do it in a day without it. Im also using GithubCopilot for code completion.
After reading and studying the output of chatgpt, you can learn really fast.
It is not just, that it helps to get tasks done, it is like a free tutor 24/7, if used right.
Impressive!
I have use chatGPT with some code good AND some code bad. I got ideas from tour vídeo. Thanks
this chatgpt can give you a task and train code with you its amazing
Very good and beneficial video. Thanks 👍. Is it possible to make plot with some KPI?
Probably. Just remember to give step-by-step instructions so it understands what you're trying to do
amazing showcase of this new technology. What do you think will be the impact on data science jobs? Because now people don't have to know how to code and just use prompts to write the code for them.
I haven't explored this tool deeply to say whether this will replace programmers. I still need some time 😅
It won't replace programmers because you still need to know how to work with code and maintain it. It's all good and well copy pasting stuff on there but when it comes to problem solving and bug testing you will be lost.
@@ags911 ...for now. Give it few years and see how it develops.
@@ags911 I have tried some easy tests to see if he can find the error from python code and he did it. I was amazed.
Typing "continue" whenever it doesnt finish code/its last statement, will allow it to finish it.
yes, but it sucks at memory. while it will continue, tell it to continue from a previous line or to restart the last segment etc, because then it will give you final code instead of a small missing snippet. handy when it decides to tell a life story with code cut off at the end,
@@Kxffie It can keeps its train of thought well, especially so when youre just telling it to continue from the last statement.
@@vexchannel6461 yes, but when you want to copy the entire thing it can sometimes skip a line or just cut off and stop so telling it to restart from the beginning of the code makes it easier to get.
Ask it to not stop from the beginning of your chat session
I always tell him
More
Do it
Whole script
Advanced script
More efficient
Make it alot easier to use it
Superb Andrade, How to use it with VSCode extension with api keys ?
I’ve never used VSCode so I can’t tell :/
sending mail, i did it in past with MUTT, like I understood I have to create separate credentials for each individual PC I am ruining on. I am I wrong?
Hi guys!
im looking for a way that the bot read my screen and use my mouse and keyboard to do anything I ask. Is it possible? can I installa chat gpt3 in my computer and give it access and control to my pc ?
damn so many people using it and making millions of videos!
Hey question here, once you copy and paste the code into pycharm, don’t you need to instal the modules?
Hi. Of course, I already had the libraries installed on my virtual environment. You could easily install any of them with pip
obviously don't know how to code if you didnt know that lmao
chagpt is powerful but thinking out of the box is the key
Couldn't agree more
congrats! New wine in new wine skins.
What have you automated with ChatGPT so far?
can u create apps with GUI with it?
Question: Where are you executing the python code? Just trying to learn the basics of Python as well.
@@michaelbrewerton4163 Pycharm but any IDE/text editor can do the job
@@kjyu4539 Never tried :(
Great video! But isn't web scrapping against their terms of service? I got warned when I ask about web scraper lol
Web scraping is not illegal in United States but it is frowned upon
@@RobertRoman we are talking online here, online is not just United States, if the company have servers outside of the United States you are breaking laws and scraping is information gathering and you will be charged with espionage against a country, not just the website owner, as you are scraping information against the law of the country.
you can literally be sentenced to death penalty in worst case scenario doing this.
Americans need to remember when they are online they aren't in the united states anymore, it's a global echo system and all laws are applied online when it comes to information sharing and gathering, as well as business models and such, just look at the trouble facebook got into with germany and france with the oculus VR headset as they tried to require facebook accounts for them (literally the biggest reason why they are making a new company called meta, because they are being hunted by different countries because they do business in the entire world online as if they are operating in america). You need to know what servers you are operating on in order to be sure you aren't actually breaking any laws, and most business' of america usually uses servers or just backup servers in netherlands or germany, so even if it's an american site, you might still be breaking the law of another country.
don't assume you are protected against another countries law, just because you aren't in physically in it.
I love you ♥️
You know what chatgpt is a threat to google and if Microsoft embedded with their search it will be massive game changer
I am new to the term Web scrape. Ah let me ask ChatGPT.
FYI you can tell it “Your code did not work” and give it some hints and it will correct it for you
Yep. ChatGPT even thanked me for pointing that out haha
Please make a video about how to access chat gpt in every country, I can't get access to it from bahrain
I talked about that on my newsletter. Basically, you need a phone number and VPN. The second can be obtained with a virtual phone number. OpenPhone can help with that, but it’s paid. About the VPN, there are many free alternatives like TunnelBear that can help you with that.
Have not notice any automations, these were just various methods to achieve specific functionalities.
On point
I keep asking the chat bot if it is actually ChatGPT and it keeps insisting that I'm not, and that I'm not interacting with ChatGPT technology in any way by chatting with it... What am I missing here?
That only shows, ChatGPT is not sentient or clever enough to think out of its boundaries. It's 'just' a language model which was trained for calling itself an 'Assistant', but it clearly does not browse the web for its own site to see it is called as ChatGPT.
@@otapi you sound just like him and it made me a little bit frustrated 😂😂😅
@@meemdizer Haha, I am not a bot I promise :) But actually I'm wondering if ChatGPT does't browse the actual internet (which is stated by open ai), how it wrote a proper scrape script for the books site as in the video?
@@otapi it was trained on a very large dataset which includes some websites, so can get some things right that make it seem like it can search the internet
Shame it doesn't work in my country
i think the jokes get through the jokes over the days when it comes to pla
Like and subs my friend. Thank you. I found your predicting Qatar 2022 WorldCup very good. (Medium).
Quite soon all the Python and JS developers will be replaced with ChatGPT :)
ChatGPT will wipe out only the jobs from Coding Bootcamp. These are private schools that teach people coding. Well ChatGPT can already do that, so it will wipe out the simple coding jobs. What is the difference between coding and programming? Coding is being able to write characters on the screen only. Programming entails so much more than coding. It involves problem solving mostly. ChatGPT will not be able to replace the hard jobs, the detailed jobs, the jobs that require specialized knowledge. I mean fields that require such detailed knowledge as low level C/C++ programming, compilers, systems programming, systems design, design patterns, algorithms and data structures, OS and kernel development, embedded systems development, computer security/hacking, deep level Linux systems administration, devops engineer. These are the fields of programming that require specialized knowledge and problem solving.
Also ChatGPT will make coding interviews mostly a thing of the past. The programming job interview of the future will be writing code on the whiteboard, or solving problems on the whiteboard. The employers or team members want to see how do you solve problems. They will be checking your knowledge, can you explain algorithms, data structure, object oriented design patterns, semaphores and deadlocks, on the whiteboard. They care about the knowledge that's in your head. Coding everyone can do, especially with ChatGPT. Not everyone can be programming!
🤡🤡
Yeah, enter your phone number on a third party lib for whatsapp so a guys behind it can can your number. Nice.
Fake channel
Chat gpt wrote me architecture diagram as well