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

КОМЕНТАРІ • 81

  • @ThePyCoach
    @ThePyCoach  Рік тому +5

    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

  • @ItsMeChillTyme
    @ItsMeChillTyme Рік тому +20

    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.

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

      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.

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

    Wow great video Frank! It definitely got my mind thinking of many possibilities using this AI!

  • @Michael-fc8or
    @Michael-fc8or Рік тому +26

    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

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

      Agree!

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

      @@ThePyCoach I showed my nana GPT. First she was like "thats sick". And then she goes "homework is for nerds now".

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

      Anything a human does a computer will do 100000009000 better.

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

    thank you so much, this will be of great help ☺️☺️

  • @sanesanyo
    @sanesanyo Рік тому +19

    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.

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

      I often just point out where the bug is and ask it to rewrite its previous code, usually works well.

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

      @@jantuitman It works sometimes but sometime it doesn't. Not so reliable in my experience.

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

      I dont see how it is physically possible that it takes more time to "fix those bugs" than starting from scratch.

    • @felixg.7752
      @felixg.7752 Рік тому

      Not sure if u have tried but if u ask it to continue the code it will pickup where it left off

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

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

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

    Thanks for your sharing

  • @StonedApe420
    @StonedApe420 Рік тому +8

    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.

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

      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.

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

    Impressive!

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

    I have use chatGPT with some code good AND some code bad. I got ideas from tour vídeo. Thanks

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

    this chatgpt can give you a task and train code with you its amazing

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

    Very good and beneficial video. Thanks 👍. Is it possible to make plot with some KPI?

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

      Probably. Just remember to give step-by-step instructions so it understands what you're trying to do

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

    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.

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

      I haven't explored this tool deeply to say whether this will replace programmers. I still need some time 😅

    • @ags911
      @ags911 Рік тому +4

      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.

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

      @@ags911 ...for now. Give it few years and see how it develops.

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

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

  • @vexchannel6461
    @vexchannel6461 Рік тому +16

    Typing "continue" whenever it doesnt finish code/its last statement, will allow it to finish it.

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

      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,

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

      @@Kxffie It can keeps its train of thought well, especially so when youre just telling it to continue from the last statement.

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

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

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

      Ask it to not stop from the beginning of your chat session

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

      I always tell him
      More
      Do it
      Whole script
      Advanced script
      More efficient
      Make it alot easier to use it

  • @1989arrvind
    @1989arrvind Рік тому

    Superb Andrade, How to use it with VSCode extension with api keys ?

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

      I’ve never used VSCode so I can’t tell :/

  • @user-so2xd7pw9l
    @user-so2xd7pw9l Рік тому

    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?

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

    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 ?

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

    damn so many people using it and making millions of videos!

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

    Hey question here, once you copy and paste the code into pycharm, don’t you need to instal the modules?

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

      Hi. Of course, I already had the libraries installed on my virtual environment. You could easily install any of them with pip

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

      obviously don't know how to code if you didnt know that lmao

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

    chagpt is powerful but thinking out of the box is the key

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

    congrats! New wine in new wine skins.

  • @ThePyCoach
    @ThePyCoach  Рік тому +4

    What have you automated with ChatGPT so far?

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

      can u create apps with GUI with it?

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

      Question: Where are you executing the python code? Just trying to learn the basics of Python as well.

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

      @@michaelbrewerton4163 Pycharm but any IDE/text editor can do the job

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

      @@kjyu4539 Never tried :(

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

    Great video! But isn't web scrapping against their terms of service? I got warned when I ask about web scraper lol

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

      Web scraping is not illegal in United States but it is frowned upon

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

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

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

    I love you ♥️

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

    You know what chatgpt is a threat to google and if Microsoft embedded with their search it will be massive game changer

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

    I am new to the term Web scrape. Ah let me ask ChatGPT.

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

    FYI you can tell it “Your code did not work” and give it some hints and it will correct it for you

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

      Yep. ChatGPT even thanked me for pointing that out haha

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

    Please make a video about how to access chat gpt in every country, I can't get access to it from bahrain

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

      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.

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

    Have not notice any automations, these were just various methods to achieve specific functionalities.

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

    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?

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

      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.

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

      @@otapi you sound just like him and it made me a little bit frustrated 😂😂😅

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

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

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

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

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

    Shame it doesn't work in my country

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

    i think the jokes get through the jokes over the days when it comes to pla

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

    Like and subs my friend. Thank you. I found your predicting Qatar 2022 WorldCup very good. (Medium).

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

    Quite soon all the Python and JS developers will be replaced with ChatGPT :)

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

      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!

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

    🤡🤡

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

    Yeah, enter your phone number on a third party lib for whatsapp so a guys behind it can can your number. Nice.

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

    Fake channel

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

    Chat gpt wrote me architecture diagram as well