Web Scraping with ChatGPT Code Interpreter is Mind-Blowing!

Поделиться
HTML-код
  • Опубликовано: 22 май 2024
  • In this video, we'll see how to do web scraping using ChatGPT Code Interpreter.
    🔥 My FREE Cheat Sheets (ChatGPT, web scraping, data science): artificialcorner.substack.com...
    Social Media
    ===========
    ✏️ Medium: thepycoach.com/
    🔗 LinkedIn: / thepycoach
    🐥 Twitter: / thepycoach
    😺 GitHub: github.com/thepycoach
    🎮 Discord: / discord
    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 by writing about AI, programming, data science or tech: thepycoach.teachable.com/p/me...
    Support My Work
    ==============
    💵 PayPal: www.paypal.com/donate/?hosted...
    Content
    0:00 Web Scraping with ChatGPT Code Interpreter
    4:42 Scraping Multiple Pages with Code Interpreter
    7:04 Extra things to consider

Комментарии • 106

  • @ThePyCoach
    @ThePyCoach  10 месяцев назад +13

    Download my FREE ChatGPT Cheat Sheet: frankandrade.ck.page/08c94cf1c1

    • @ahmedmohammed-xo7rr
      @ahmedmohammed-xo7rr 6 месяцев назад

      It will be nice if we can apply this approach on Facebook posts and websites?

    • @yusufadeoye5600
      @yusufadeoye5600 2 месяца назад

      HI , please can we still assess the the free chatGPT cheat sheet. please do share again

  • @MHawkinsx
    @MHawkinsx Месяц назад

    Mind-blowing stuff! Wonder if combining it with Proxy-Store's proxies would level up the scraping game even more. Any ChatGPT fans here?

  • @BiologicalDataScientist
    @BiologicalDataScientist 6 месяцев назад

    Thanks, that's really helpful advice - and indeed pretty mind-blowing!

  • @Code___Play
    @Code___Play 2 месяца назад

    Very practical and helpful video with very detailed explanation!

  • @yuryhorulko3834
    @yuryhorulko3834 4 месяца назад

    Thank you so much The PyCoach!

  • @Autoscraping
    @Autoscraping 4 месяца назад +5

    A terrific video that has been the cornerstone for our new team members. Thank you for sharing it!

  • @LuisCarlosChavez717
    @LuisCarlosChavez717 9 месяцев назад

    Awesome!!!! and extremely useful!

  • @DaveNougalMusic
    @DaveNougalMusic 10 месяцев назад +2

    Hey PyCoach, learning a lot from you. Thanks man!

  • @Su1c1deK1ng1028
    @Su1c1deK1ng1028 3 месяца назад

    Top tier content bro. Easy sub.

  • @therealjohnshelburne
    @therealjohnshelburne 6 месяцев назад

    thank you!!! never thought about the save page as html and then uploading

  • @russellwright3818
    @russellwright3818 8 месяцев назад

    Thank you very helpful.

  • @SPL88
    @SPL88 26 дней назад

    Great stuff @ThePyCoach! Question now is, how do we automate this scraping for multi-pages instead of manually saving each page as a new html file?

  • @mohamadzidani9404
    @mohamadzidani9404 Месяц назад

    You are the best, subscribed :)

  • @hasanulgonisohayeb6323
    @hasanulgonisohayeb6323 5 месяцев назад

    This is really cool❤

  • @montbeltrading
    @montbeltrading 5 месяцев назад

    very nice! thumbs up.

  • @Scuurpro
    @Scuurpro 2 месяца назад

    how would you do it for the products page. So the tv plus the product pages details of the tv then so on.

  • @vventurez
    @vventurez 9 месяцев назад

    Thanks for the video! I tried both methods to scrape Udemy and it didn't work, since the content is in a container. Do you have a solution for this?

  • @32AA32
    @32AA32 4 месяца назад

    can this be used to scrape multiple pages like 100 pages on a domain? i guess so, because one page would be silly

  • @Md.HasiburRahman-op7ll
    @Md.HasiburRahman-op7ll 7 дней назад

    is it same work as like other language website like Hindi , Japanese , Chinese and many more language ?

  • @awakenwithoutcoffee
    @awakenwithoutcoffee 2 месяца назад

    this is cool ! although It is probably not able to scrape any IMG/Links ?

  • @gsonbiswas9765
    @gsonbiswas9765 6 месяцев назад

    Hi, is there any way now to scrape all posts and comments of a subreddit? I need them for my research.

  • @RonWilliams-Hoodle
    @RonWilliams-Hoodle 9 месяцев назад +10

    Cool process. But what is the advantage of doing this process, instead of using pre-built scrapers already available like "Instant Data Scraper".

    • @xaviergonzalez6180
      @xaviergonzalez6180 8 месяцев назад

      You can tell Chat GPT code interpreter to do the same thing for any amazon page, just upload the html and run the same process. Instant data scraper is clunky and the interface looks old, I'm sick of clicking an dragging with all these data scrapping app extensions. Also certain websites don't work well with data scraper apps to many blockers. try extracting data from harbor freight with instant data scraper. its a nightmare! no thank you.

  • @abdelkrimsaida-zs3tc
    @abdelkrimsaida-zs3tc 3 месяца назад

    the interpreter code does not appear in the beta feautures to activate it just i have only plugin why? do you have a solution please

  • @KeneDigital
    @KeneDigital 10 месяцев назад

    I love your contents especially this one..
    Sir how can we offer this as a service. Who would need this service ?
    Can you help out maybe with a resources thank your

  • @TheLaunchingPadHQ-xz8vy
    @TheLaunchingPadHQ-xz8vy 9 месяцев назад

    Hi Frank ty for the great walkthrough! I am trying to scrape google to deterniine companies near me that do not have a website. it appears to be a simple task to determine on the search results which ones to choose but for some reason gpt says the html structure of nesting elements is not allowing it to do so. Any ideas?

    • @lifistudyAnupam
      @lifistudyAnupam 8 месяцев назад +1

      So have you done it?

    • @Corteum
      @Corteum 6 месяцев назад

      Just make a list of all the businesses near you. Then identify among those which could benefit from having a website. BOOMSHAKALAKA!

  • @laultimaverdad1187
    @laultimaverdad1187 10 месяцев назад +1

    cool

  • @yasim9435
    @yasim9435 9 месяцев назад +1

    Try saving all the pages at once to reduce manual repetitive work

    • @robertoflores2078
      @robertoflores2078 2 месяца назад

      I guess the manual download part is intended for demonstration. You'd do this programmatically.

  • @markspringfield6112
    @markspringfield6112 5 месяцев назад +2

    This was pretty good, but I notice that none of these GPT methods for data extraction deal with pagination. How would we do this if we've got multiple pages of jobs on Glassdoor and you wanted to let chatGPT run through all of them?

    • @LucrativeSetbacks
      @LucrativeSetbacks 4 месяца назад

      Thank you for pointing this out before I went too far in this video, as I am trying to scrape dynamic content loaded with JS

  • @giraldomedia
    @giraldomedia 9 месяцев назад +3

    Can you make a video like this that's scrapes the SEO keywords that a website is using?

  • @aimattant
    @aimattant 10 месяцев назад +1

    But not the automation I am looking for - will keep up with the options choose and one click. Maybe a long way to complete it but will do everything I need. Really python and is with some chat chatbot content writing - might use ChatGPT - but the content never passes ai detection like clause on it's first time.

    • @pocketsfullofdynamite
      @pocketsfullofdynamite 10 месяцев назад

      You really have to do the most part of the writing for SEO, based on the 'draft' or outline of the content.

  • @denwo1982
    @denwo1982 10 месяцев назад +1

    Is it not possible to provide the url and then get it to loop through the pages till it gets to the last page and then get it to export the results to csv

    • @ThePyCoach
      @ThePyCoach  10 месяцев назад +2

      If you pass the URL, ChatGPT will probably tell you that it's not able to perform web scraping or that is against the ToS

    • @anuroop345
      @anuroop345 10 месяцев назад +3

      you can ask chatgpt for python script to scrap that page. and then you can run that script on your computer to loop and scrap.

    • @denwo1982
      @denwo1982 9 месяцев назад +1

      @@ThePyCoach I would have thought someone would have made a plug-in for this now

    • @denwo1982
      @denwo1982 9 месяцев назад

      @@anuroop345 I tried this but it’s not as easy, Chatgpt keeps having trouble with the looping side, plus a few websites require a login to access their site

  • @MSteppe
    @MSteppe 10 месяцев назад

    Did they remove the Code Interpreter plugin? How do you get it? I have a paid account. Thanks

    • @Fredsiika
      @Fredsiika 9 месяцев назад +1

      Try enabling it in your settings. Open Settings > Click on "Beta Features" > Press "Code interpreter" toggle button

  • @wanderingzanzey2126
    @wanderingzanzey2126 5 месяцев назад

    listening to this video gives me "Two Minute Papers" vibes. I was waiting for ""Alright everyone, hold onto your papers"

  • @christiankonnerth3818
    @christiankonnerth3818 8 месяцев назад

    Hi, is Code Interpreter also available through the API?

    • @ThePyCoach
      @ThePyCoach  8 месяцев назад

      Hi. I'm not quite sure

  • @hadijannat4821
    @hadijannat4821 10 месяцев назад

    Thanks, but what if we ask it to use link directly with help of beautiful soup and selenium? What would happen

    • @ThePyCoach
      @ThePyCoach  10 месяцев назад +2

      When I checked the code I could see it's using Beautiful Soup. I'm not quite sure what would happen if you specify to use Selenium. Just remember that code interpreter is mostly parsing the HTML file

  • @xtremereality
    @xtremereality 6 месяцев назад +1

    So basically you made a tutorial about saving a file and loading it into chatgpt?

  • @bobbynicholson5329
    @bobbynicholson5329 9 месяцев назад +1

    Could have also just Did View Source, then copy paste, or maybe even use plugins with link reader and paste that viewed source URL in.

    • @egauci1
      @egauci1 7 месяцев назад +1

      View source won’t work if the page is rendered dynamically

    • @bobbynicholson5329
      @bobbynicholson5329 7 месяцев назад

      true that@@egauci1

  • @Baka_Oppai
    @Baka_Oppai 7 месяцев назад

    code interpreter isnt even an option was it removed? Maybe explain how to get it thatd be helpful

  • @SaidThaher
    @SaidThaher 9 месяцев назад

    If you used harpa or perplexity it will get the job done with no complications 😅

  • @baldyardigan
    @baldyardigan 10 месяцев назад

    So how do I scrape data from the product pages as well?

    • @ThePyCoach
      @ThePyCoach  10 месяцев назад

      Just upload its HTML file and follow the same steps

  • @bigpickles
    @bigpickles 10 месяцев назад +5

    I've had a huge increase in scrapers across my entire domain portfolio.
    Given the power of AI, I've managed to poison most of the scraped data and cause major headaches going forward.

    • @tryderrick
      @tryderrick 9 месяцев назад

      What do you mean?

    • @bigpickles
      @bigpickles 9 месяцев назад +2

      @@tryderrick upon detection, I feed a load of nonsense back in between legit data, and it totally ruins the dataset.

    • @bigpickles
      @bigpickles 9 месяцев назад +2

      @@ronin4518 depends what you're scraping. Not my data

  • @tradingchamp3493
    @tradingchamp3493 10 месяцев назад

    we need to all this thing for scrap? And scrap for what?

  • @Brisius
    @Brisius 8 месяцев назад

    Why would I do this? What is the use case for this

  • @josiahgwar1697
    @josiahgwar1697 8 месяцев назад +1

    But it appears this only works with the paid version of chatGBT

  • @armwrestling_nerd
    @armwrestling_nerd 8 месяцев назад +1

    This was actually slower than classic python scraping.

    • @abiol1542
      @abiol1542 7 месяцев назад

      Hey would you be able to assist in python scraping script and looping the scape for another search ?

  • @Daddytang67
    @Daddytang67 9 месяцев назад

    Ok...but what I really need is for chatgpt to code a webapp like Ahrefs.

  • @countitworldwide007
    @countitworldwide007 8 месяцев назад +1

    🎯 Key Takeaways for quick navigation:
    00:00 🌐 Introduction to web scraping with ChatGPT Code Interpreter
    01:07 📂 Saving a webpage as an HTML file
    03:38 🧩 Extracting data from HTML using ChatGPT
    04:08 📄 Exporting extracted data to CSV
    05:03 🔁 Repeating the process for multiple pages
    06:51 🌐 Scraping data from Glassdoor
    08:13 🧩 Scraping specific data elements from Glassdoor
    11:56 📄 Exporting Glassdoor data to CSV
    12:37 🚀 Conclusion and call to action
    Made with HARPA AI

  • @letitbeai
    @letitbeai 9 месяцев назад +1

    I don't wanna be that guy, but you can do this with a free tool called Harpa in a split of a second, it is nice to see the procedure but... 🤷‍♀

  • @MarioZuniga-pi3cz
    @MarioZuniga-pi3cz 5 месяцев назад +1

    3:05 a empresa AVANCO SOCIAL tem o poder de transformar marcas e negócios por meio da habilidade em impulsionar redes sociais. É inspirador!

  • @alexv259
    @alexv259 9 месяцев назад

    What is the purpose of doing this? What was the problem that makes your work its solution?

  • @craftedbysrs
    @craftedbysrs 10 месяцев назад +7

    I used it to scrap some websites. Last week my account was banned, said my activity was suspicions.

    • @ThePyCoach
      @ThePyCoach  10 месяцев назад

      How could that happen? Did you upload too many HTML files?

    • @craftedbysrs
      @craftedbysrs 10 месяцев назад +1

      ​@@ThePyCoachNo i didn’t. I just uploaded direct link with scraper plugin on. And prompted the code interpreter to generate a new programming language that is more advanced.

    • @curious_one1156
      @curious_one1156 10 месяцев назад +3

      that is why you need to use langchain and make your own code agent.
      Also, only use interpreter to write code once, then handle it yourself.

    • @contentfreeGPT5-py6uv
      @contentfreeGPT5-py6uv 10 месяцев назад

      ​@@curious_one1156how

    • @bigpickles
      @bigpickles 10 месяцев назад +1

      Good. We don't like dodgy scrapers.

  • @simongus
    @simongus 9 месяцев назад +1

    What will happen if you want to scrape 1 million pages? 😀

    • @robertoflores2078
      @robertoflores2078 2 месяца назад

      1 million page downloads, and 1 million ChatGPT uploads.

  • @seobookpro
    @seobookpro 4 месяца назад

    Dude 😂

  • @egretfx
    @egretfx 9 месяцев назад +1

    this video should have been a short.

  • @fizzlid4511
    @fizzlid4511 4 месяца назад

    This is more of a chatgpt-aided manual scraping. The processes aren't automated.

  • @AlexandrShevchenko000
    @AlexandrShevchenko000 10 месяцев назад +46

    This scraping is very manual. There are much better ways.

    • @carkawalakhatulistiwa
      @carkawalakhatulistiwa 10 месяцев назад

      Next version of code interpreter

    • @izzyal-zyoud7563
      @izzyal-zyoud7563 10 месяцев назад +10

      Could you please share them

    • @mishos.2228
      @mishos.2228 10 месяцев назад +12

      @@izzyal-zyoud7563 webpilot plugin, can scrape any number of pages with one prompt and by just providing the page 1 link

    • @klaaskay2685
      @klaaskay2685 10 месяцев назад

      @@mishos.2228 Won't that get you banned anytime soon using just links?

    • @rancio3354
      @rancio3354 9 месяцев назад +3

      Yea this aint web scraping. this is html extracting data, where is the web scraping at?? you are doing it manual…

  • @timgentemann6324
    @timgentemann6324 3 месяца назад

    If you know web scraping this is really nothing :D

  • @faizelnoorgat7141
    @faizelnoorgat7141 9 месяцев назад +2

    Watching your video made me angry

  • @dhuruvm
    @dhuruvm 10 месяцев назад

    Bro how to train a own AI 😅 and make like chatgpt

    • @ThePyCoach
      @ThePyCoach  10 месяцев назад +1

      I think you need to use Langchain for that

    • @dhuruvm
      @dhuruvm 10 месяцев назад

      @@ThePyCoach you can create a chatbot using Langchain how to make a chatgpt using Langchain

  • @faizelnoorgat7141
    @faizelnoorgat7141 9 месяцев назад +1

    I really don’t like this title. It feels dishonest. There’s are much better ways to use chatgpt to scrape

  • @AI-4-U
    @AI-4-U 8 месяцев назад +1

    Please remove this video, you wasted my 15 minutes 😢

  • @RedTekno
    @RedTekno 3 месяца назад

    Clickbait 😅

  • @ikjb8561
    @ikjb8561 3 месяца назад

    Not too useful. Stick to node puppeteer or perl/python command line scripts.