Web Scraping with GPT-4 Vision AI + Puppeteer is Mind-Blowingly EASY!

  Рет қаралды 58,159

ByteGrad

ByteGrad

Күн бұрын

Пікірлер: 53
@zeeeeeman
@zeeeeeman 7 ай бұрын
This is such a timely video - i'm doing something similar to resurrect a website from the wayback machine.
@hxxzxtf
@hxxzxtf 7 ай бұрын
🎯 Key Takeaways for quick navigation: 00:00 *🌐 Web scraping has been revolutionized by AI, particularly with the latest Vision AI model, making data extraction more efficient.* 01:07 *💻 Manually copying HTML and using Chat GPT for extraction is one method, but OpenAI's API offers programmable solutions for scalability.* 02:16 *🔄 Using Puppeteer with Bright Data's scraping browser helps circumvent website restrictions and rate limiting during scraping.* 05:33 *🖥️ Puppeteer allows for easy scraping of HTML content, but there's a need to manage and clean up the extracted data before analysis.* 08:35 *💡 Extracting only necessary data from HTML can optimize costs when using OpenAI's models for analysis.* 12:17 *💰 Text-based scraping methods can be cost-effective, but they require ongoing maintenance due to HTML structure changes.* 14:49 *📸 Utilizing OpenAI's GPT-4 Vision API enables data extraction from screenshots, potentially offering a more robust solution for complex web scraping tasks.* 17:52 *🖼️ Using base64 encoding allows passing images to models, enhancing data processing capabilities.* 18:49 *💸 Consider cost-effectiveness when choosing between complex HTML-based or text-based approaches for web scraping.* 19:58 *🎚️ Adjusting image resolution can significantly decrease token usage in web scraping, but it may increase the likelihood of errors.* 20:53 *🖼️🔄 Balance image resolution and price when utilizing Vision API for web scraping, as higher resolution images incur higher costs.* 21:19 *🧹 Clean up HTML before web scraping to reduce token usage and ensure accuracy in results.* 22:57 *🤖 Explore advanced features of AI tools, such as identifying clickable elements, to enhance web scraping automation.* Made with HARPA AI
@rakysreplays8259
@rakysreplays8259 14 күн бұрын
The best video I've seen about web scraping
@beemerrox
@beemerrox 4 ай бұрын
Wow. this video provides GREAT value. Just in time for what I´m doing now. Thanks mate!
@Lars16
@Lars16 7 ай бұрын
This is a great video. But the problem with scraping has hardly ever been parsing the HTML or maintaining the parsers. The biggest problem is efficiently accessing websites that actively try to block you by gating their content being a login or captchas. Then comes IP blocking (or worse data obfuscation) if you Scrape their website in a large volume.
@binhtruongdac2861
@binhtruongdac2861 7 ай бұрын
That’s why you need smth like Bright Data, yes, it’s not free unfortunately
@karenapatch1952
@karenapatch1952 5 ай бұрын
Octoparse can deal with this, and it's free. No thanks
@beemerrox
@beemerrox 4 ай бұрын
@@karenapatch1952 Thanks! Didnt know, looks awesome!
@Andrew-qc8jh
@Andrew-qc8jh 4 ай бұрын
yeah this is pretty cool to see but it doesn't look that helpful in comparison to methods using beautifulsoup.
@reidevanson181
@reidevanson181 7 ай бұрын
what an amazing video - like its so niche but so useful
@ByteGrad
@ByteGrad 7 ай бұрын
Glad you liked it
@SupCortez
@SupCortez 5 ай бұрын
Thank you infinitely for sharing this masterclass lesson with the universe for free. Subbed
@benhasanaltun
@benhasanaltun 23 күн бұрын
Thanks for sharing!
@ByteGrad
@ByteGrad 5 ай бұрын
Hi, my latest course is out now (Professional React & Next.js): bytegrad.com/courses/professional-react-nextjs -- I'm very proud of this course, my best work! I'm also a brand ambassador for Kinde (paid sponsorship). Check out Kinde for authentication and more bit.ly/3QOe1Bh
@juliushernandez9855
@juliushernandez9855 7 ай бұрын
Can you create a video how to deploy puppeteer and next js to vercel?
@nomicgaming5730
@nomicgaming5730 7 ай бұрын
thank you a lot ♥
@felipeblin8616
@felipeblin8616 5 ай бұрын
Great video. Some question though. What about hallucinating? How can be sure is not doing it?
@dmitriydorogonov7918
@dmitriydorogonov7918 5 ай бұрын
Perfect video, thanks
@jameskayihura1675
@jameskayihura1675 2 ай бұрын
Let’s say I want to scrape LinkedIn mentions. Basically LinkedI will request authentifications. Can this be applied to my question? Thanks
@justcars2454
@justcars2454 2 ай бұрын
When doing web scraping but at a large scale it will be so much expensive, its better to use chatgpt or a better llm, trough its api, and automatilcy making chatgpt handle the errors untill it find the perfect code, its better if it can try finding hidden api endpoints first then building the script for the website based on that enpdoint .... And all this automatily, you just need to make chatgpt, be able to correct itself, and making scripts by itself and run it on your pc, and handle errors untill getting the exact script that succefully scrape what you want.
@dupatrio9305
@dupatrio9305 5 ай бұрын
Where can I learn basic coding from scratch to be able to do that?
@imranhrafi
@imranhrafi 7 ай бұрын
It's interesting, but what if I want pagination? I will still need to select next button in old way. Is there any other way of doing the pagination?
@MrVliegendepater
@MrVliegendepater 5 ай бұрын
scrape all url's from all sitemaps and then define how many levels deep you like to go... you will get more info than needed but it will do the job. If you put your html contento to markdown and secondly embed the markdown content into a vector database, you could query anything on the content.
@hishamazmy8189
@hishamazmy8189 7 ай бұрын
amazing
@RobShocks
@RobShocks 7 ай бұрын
Have you thought about or tried using a local model to scrape, it would save all the costs
@Zaddy_Woods
@Zaddy_Woods 3 ай бұрын
Could you explain a little more please?
@gregsLyrics
@gregsLyrics 4 ай бұрын
and how do you get to the next page to scrape?
@amitjangra6454
@amitjangra6454 6 ай бұрын
I am scrapping (dropping html) with python code with selenium (aprrox 60,000 articles) and later creating vector embeddings for Llama 3 and asking it to write article for me.
@richerite
@richerite 6 ай бұрын
Do you have a GitHub link? What did you mean write article
@5minutes106
@5minutes106 5 ай бұрын
We're you able to scrape 60,000 articles without getting your IP address blocked ? That's impressive if you did
@OnlyUseMeEquip
@OnlyUseMeEquip 5 ай бұрын
@@5minutes106 obviously not, you just rotate proxies
@水手大力-y8l
@水手大力-y8l 7 ай бұрын
elegant
@Garejoor
@Garejoor 7 ай бұрын
can crewAI do this as well?
@hellokevin_133
@hellokevin_133 7 ай бұрын
Hey man, mind if I ask what programming languages you know other than Javascript/TS ?
@laughremixsquad
@laughremixsquad Ай бұрын
🫡 those 90,000 tokens. Thanks you for your sacrifice. 😢
@Kamil_Aqil
@Kamil_Aqil 3 ай бұрын
10/10
@dmytroocheretianyi7577
@dmytroocheretianyi7577 6 ай бұрын
Perhaps it will be cheaper on Claude.
@LifeTrekchannel
@LifeTrekchannel 7 ай бұрын
How to do this using Braina AI? Braina can run GPT-4 Vision.
@subhranshudas8862
@subhranshudas8862 7 ай бұрын
how do you handle paginated data?
@binhtruongdac2861
@binhtruongdac2861 7 ай бұрын
You just need to use the URL with page number in query params then run for loop to request multiple html page
@amadeuszg1491
@amadeuszg1491 7 ай бұрын
I am interested in creating a price comparison website featuring approximately 10-20 shops, each offering around 10,000 similar products. Unfortunately, these shops do not provide APIs for direct access to their data. What would be the most efficient approach to setting up such a website while keeping maintenance costs reasonable?
@Braincompiler
@Braincompiler 7 ай бұрын
Make it like the other comparison sites and provide an upload for CSV, XML and so on or YOU provide the API for them so their shop systems can push the data ;) Crawling by yourself is the last option and could be made with XPath and stuff.
@amadeuszg1491
@amadeuszg1491 7 ай бұрын
@@Braincompiler Yes, but in this case store needs to send me the csv, xml file with their products. What if they dont?
@Braincompiler
@Braincompiler 7 ай бұрын
@@amadeuszg1491 Yes of course. If your comparison site has a benefit for them be sure they will.
@abhisycvirat
@abhisycvirat 7 ай бұрын
I did this 6 years ago, scraped each website and compared the price using SKU
@ThePriceIsNeverRight
@ThePriceIsNeverRight 3 ай бұрын
This is good but costly to maintain 💸
@laihan4469
@laihan4469 5 ай бұрын
How a full stack dev work with AI?
@antronx7
@antronx7 3 ай бұрын
So is this what modern software engineers do these days? Write scripts to glue paid services together?
@Fatman305
@Fatman305 3 ай бұрын
Yeah. Makes zero sense... Paying for each scraped page is probably one of the worst ways of doing this. I guess it's fine if your total bill is very low, but really, for serious work it would make way more sense to ask the AI how to store these pages locally and analyze that local data...locally...
@UserAliyev
@UserAliyev 7 ай бұрын
First
@semyaza555
@semyaza555 7 ай бұрын
2nd
Cloning Apple.com Landing page (Prototyping GenAI Example)
1:23
This is how I scrape 99% websites via LLM
22:44
AI Jason
Рет қаралды 84 М.
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 102 МЛН
PRANK😂 rate Mark’s kick 1-10 🤕
00:14
Diana Belitskay
Рет қаралды 11 МЛН
这是自救的好办法 #路飞#海贼王
00:43
路飞与唐舞桐
Рет қаралды 136 МЛН
Amazing remote control#devil  #lilith #funny #shorts
00:30
Devil Lilith
Рет қаралды 15 МЛН
AI Agent Web Scraper are HERE
23:16
J-HAYER
Рет қаралды 627
Web Scraping + Reverse Engineering APIs
52:33
Syntax
Рет қаралды 7 М.
Python AI Web Scraper Tutorial - Use AI To Scrape ANYTHING
45:36
Tech With Tim
Рет қаралды 171 М.
Web crawler architecture | System Design Interview
23:55
STEM Interviews
Рет қаралды 91
Stop Using Selenium or Playwright for Web Scraping
10:46
John Watson Rooney
Рет қаралды 10 М.
Comparing Top 5 AI Web Scraping Tools (updated 2024)
12:30
Cursor Text Editor Tutorial Simplify Component Creation
6:16
Pro Trailblazer
Рет қаралды 68
How to take a  screenshot with puppeteer (node.js)
5:38
Adrian | The Web Scraping Guy
Рет қаралды 483
Learn RAG, LangChain, Vector DB's, with this project, FULL COURSE
1:29:21
PropTech Founder
Рет қаралды 1,1 М.
This Open Source Scraper CHANGES the Game!!!
20:36
Reda Marzouk
Рет қаралды 114 М.
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 102 МЛН