Let's Build a WebScraper in 15 Minutes with NextJS!

  Рет қаралды 26,678

Josh tried coding

Josh tried coding

Күн бұрын

NextJS makes web scraping super simple. Let's dive into the easiest web scraping method, simply using the native fetch API and then turning that into HTML! All in all, building a web scraper can be done in minutes and be really helpful when there is no API you can get the data from.
Be careful with web scraping though, some websites do not allow it (especially if the scraped content is behind auth or even worse a paywall).
With that said, I wish you lots of fun implementing this into your own projects!

Пікірлер: 31
@BRP-Moto-Tips
@BRP-Moto-Tips Жыл бұрын
I appreciate these kind of videos that aren't quite the bread and butter for web development but still provide insightful knowledge on some of those not mainly used topics. Thanks for your work!
@markovvoz8849
@markovvoz8849 Жыл бұрын
Can you also provide a GitHub to this code. Thanks
@alberteinstein7231
@alberteinstein7231 Жыл бұрын
Love the consistency Josh, thanks for helping me learn with you.
@joshtriedcoding
@joshtriedcoding Жыл бұрын
Glad to hear even Einstein is learning with me. Cheers man
@kwyjibu
@kwyjibu Жыл бұрын
What should i do when deploying project. It gives localhost error, i changed it to my own domain using https etc. but still not working. Any idea?
@bigc4290
@bigc4290 Жыл бұрын
Do you have the Github for this? I'm getting a 404 at the beginning.
@satyarajraghav661
@satyarajraghav661 Жыл бұрын
I was searching for this. Thanks alot.
@OfficialLRY
@OfficialLRY Жыл бұрын
Could you explain why you fetch the downloads on the server and not on the client?
@okage_
@okage_ Жыл бұрын
he said he prefers doing it that way since doing it client side will mean that the speed relies on the clients computing power which isnt always ideal
@OfficialLRY
@OfficialLRY Жыл бұрын
@@okage_ oh i missed that.. thanks for making it clear
@codewithguillaume
@codewithguillaume Жыл бұрын
Tomorrow my friend, I'll complete this video course for sure :) Thank you !
@bryson2662
@bryson2662 Жыл бұрын
This is a great video, I've been wanting to try some web scraping. Question though, why use t3 if you're not going to use trpc? I think trpc would make this more clean.
@TimStark
@TimStark 10 ай бұрын
can you give an example of how trpc can make it more clean?
@santiskiffa
@santiskiffa 5 ай бұрын
Why do I get a cors error?
@hamzahmd_
@hamzahmd_ 8 ай бұрын
Awesome video.
@dluancr
@dluancr Жыл бұрын
Thanks, that way is much better than use puppteer. My code always break when I tried use the puppeteer
@okage_
@okage_ Жыл бұрын
amazing
@athwala
@athwala 11 ай бұрын
I tried scrape data from public Facebook post but I couldn't. How can I do
@atlantic_love
@atlantic_love 11 ай бұрын
That's way, way too much work just to do something that's very simple.
@benoitgrasset
@benoitgrasset Ай бұрын
totally useless, you can't scrap most of the sites with this technique, for example the SPAs
@OverMartinez
@OverMartinez Жыл бұрын
What happend whe the site is a SPA and the fetch didn't get the all html from the server? there is any way to get full page content?
@doncoder-channel
@doncoder-channel Ай бұрын
Good vide, do you have a repo for this?
@developer_hadi
@developer_hadi Жыл бұрын
Thanks bro I'll watch this after finish learning react and start learning next js
@hrithikwins
@hrithikwins Жыл бұрын
Great determination ❤
@pookie1307
@pookie1307 Жыл бұрын
thank you for this video ive been trying to figure out how to use next js with puppeteer for a week now this helped me
@1000ylovers
@1000ylovers Жыл бұрын
Really Love the fact that you consistently put out contents that are actually very worth watching!. Josh, I have a question regarding if this can also scrap meta data of the website like title, image, subtitle and so on.
@joshtriedcoding
@joshtriedcoding Жыл бұрын
Cheers. For those use cases using puppeteer (a browser controlled from the server) will be of much more use to you than plain old fetch. Way more possibilities
@1000ylovers
@1000ylovers Жыл бұрын
@@joshtriedcoding thanks for the rely. Just to be sure, you are saying scraping metadata of the websites is indeed possible and one of the features of puppeteer?
@joshtriedcoding
@joshtriedcoding Жыл бұрын
@@1000ylovers For sure! For example grabbing the page title is as easy as page.title(). You can get additional metadata via the CSS selectors such as head > meta[name='description']
@sarimkhan2306
@sarimkhan2306 Жыл бұрын
I am having error while importing jsdom library , any idea ?
@groverkennedy2049
@groverkennedy2049 Ай бұрын
Probably because of Next.js 13 with the client and server side
Advanced Web Scraping in Puppeteer: Scraping a Bookstore!
21:59
Josh tried coding
Рет қаралды 31 М.
I built the same app 10 times // Which JS Framework is best?
21:58
Fireship
Рет қаралды 2,5 МЛН
GIANT Gummy Worm Pt.6 #shorts
00:46
Mr DegrEE
Рет қаралды 88 МЛН
АЗАРТНИК 4 |СЕЗОН 3 Серия
30:50
Inter Production
Рет қаралды 1 МЛН
Formazione Spooky2: Alla scoperta del software Spooky
1:48:26
Euquantica Helias
Рет қаралды 2
10 common mistakes with the Next.js App Router
20:37
Vercel
Рет қаралды 215 М.
You don't need a frontend framework
15:45
Andrew Schmelyun
Рет қаралды 126 М.
The Big Headless CMS Lie (James Mikrut)
18:14
Vercel
Рет қаралды 60 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 478 М.
10 JavaScript Interview Questions You HAVE TO KNOW
13:41
James Q Quick
Рет қаралды 60 М.
Industrial-scale Web Scraping with AI & Proxy Networks
6:17
Beyond Fireship
Рет қаралды 749 М.
How To Debug React Apps Like A Senior Developer
21:07
Web Dev Simplified
Рет қаралды 142 М.
The Biggest Mistake Beginners Make When Web Scraping
10:21
John Watson Rooney
Рет қаралды 115 М.
Игровой руль - штука годная 👍
0:50
RxFx
Рет қаралды 3,7 МЛН
Creepy Samsung Alarm 🫣 🍪 011
0:10
ACTION PAPA eng
Рет қаралды 393 М.
Mac USB
0:59
Alina Saito / 斎藤アリーナ
Рет қаралды 22 МЛН
D3 XIAOMI SU7 MAX
14:25
smotraTV
Рет қаралды 596 М.