Puppeteer Tutorial - Puppeteer Full Course for Beginners 2022

🌐 NodeMaven Proxy Provider: go.nodemaven.c...
💥 Special Bonus: Use "Michael" at checkout for an extra +2GB of bandwidth.
🤖 2captcha Captcha Solving Service: bit.ly/2captch...
Welcome to my Puppeteer Full Course for Beginners. In this video, I have compiled my Puppeteer Series I made into this 3-hour full course Puppeteer tutorial. The video is designed to learn everything necessary about Puppeteer to be able to complete big projects either your own or professionally. I decided to put the work in and teach you everything about Puppeteer because documentation is boring :D. I have over 3 years of experience professionally completing projects for thousands of dollars, and all the knowledge required to do so yourself is shared in this video.
Code:
github.com/mic...
github.com/mic...
github.com/mic...
github.com/mic...
Join our Discord: / discord
Download Visual Studio Code: code.visualstu...
Download Nodejs: nodejs.org/en/...
Puppeteer API: www.npmjs.com/...
Puppeteer Cluster API: www.npmjs.com/...
Puppeteer Plugin Recaptcha API: www.npmjs.com/...
Puppeteer Stealth Plugin: www.npmjs.com/...
2Captcha Website (Affiliate Link): bit.ly/2captch...
Python Download: www.python.org...
TwoCaptcha PyPi: pypi.org/proje...
Donate
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
PayPal: support@websidev.com
Bitcoin Wallet: bc1q05j8gcnq4mzvgj603cxdc8xxck4jgnu2ljsrt4
Ethereum Wallet: 0x5e7BD4f473f153d400b39D593A55D68Ce80F8a2e
Social
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Website: websidev.com
Linkedin: / michael-kitas-638aa4209
Instagram: / michael_kitas
Github: github.com/mic...
Business Email: support@websidev.com
Intro (0:00)
Setup, Web scraping & Testing (2:45)
Grabbing Elements From HTML (11:37)
Pagination & Saving Data To CSV File (26:47)
Scrape multiple pages in parallel using puppeteer-cluster (48:02)
How to bypass/solve reCAPTCHA using 2captcha API (1:06:19)
How to bypass/solve normal captcha using 2captcha API (1:15:55)
Bypass Detection using plugins, settings & proxies (1:35:53)
How to bypass/solve hCaptcha using 2captcha API (1:46:39)
Save & Reuse Cookies (1:54:34)
Capture, Block & Mock Requests (2:01:00)
Scrape Websites with Infinite Scrolling (2:14:55)
How To Deploy Puppeteer Script in Heroku via CLI & GitHub in 2022 (2:24:48)
How To Deploy Puppeteer Script in Vercel via CLI & GitHub in 2022 (2:44:46)
How To Deploy Puppeteer Script in AWS Lambda in 2022 (2:55:14)
Top 8 Web Scraping Tips Every Beginner Should Know (3:08:10)
Tags:
- Puppeteer Tutorial
- Full Course Puppeteer
- Puppeteer Nodejs
- Web Scraping Full Course
- Puppeteer Web Scraping Full Course
#nodejs #puppeteer #webscraping

Пікірлер: 84

  • @alexandra-lu4fp
    @alexandra-lu4fp Жыл бұрын

    By far the most friendly Puppeteer Tutorial I've ever seen on the internet, thanks a lot Michael🙏! You're quite literally one of the best teachers on youtube.

  • @mattwaala
    @mattwaala Жыл бұрын

    Thanks bro :) This is the best tutorial on youtube about web scrapping in node . Keep it up :)

  • @Amar11115
    @Amar11115 Жыл бұрын

    God Bless You Man! Really awesome tutorial. Thanks a bunch!😄

  • @amoutsatsos
    @amoutsatsos Жыл бұрын

    Μπραβο Μιχάλη! Πολύ ωραίο turorial οτι χρειαζόμουν για να φτιάξω scraping script για ένα πελάτη. Ευχαριστώ πολύ

  • @imposteralchemist4521
    @imposteralchemist4521 Жыл бұрын

    Very intutive and friendly pupettier tutotial we need :)

  • @sesu6743
    @sesu674311 ай бұрын

    39:52 sudden jump where code has changed. Having a lot of trouble following..

  • @MichaelKitas

    @MichaelKitas

    10 ай бұрын

    Sorry about that, editing mistake

  • @Cognitoman
    @CognitomanАй бұрын

    I haven’t watched the whole series. I’m going to though

  • @SACHINDHOTE10
    @SACHINDHOTE10 Жыл бұрын

    This video clears lot of my errors, currently working on rough project, where we can pass the search value from frontend and gets the results in frontend, using puppeteer at back end. But I am unable to integrate frontend(HTML page) with puppeteer code. I almost watched every KZread tutorial for this requirement but no one explains how to handle puppeteer ode from front end, would appreciate if you can create a video on this. Thanks.

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    Nice idea, will do that soon

  • @VenomsGT
    @VenomsGT Жыл бұрын

    Thank you for the tutorials!

  • @trestar7624
    @trestar7624 Жыл бұрын

    Hi Michael, the new puppeteer version gives an error when using puppeteer-extra. I get this error: Error: An `executablePath` or `channel` must be specified for `puppeteer-core` Any help or update would be appreciated!

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    You need to download chromium locally and specific it's path using "executablePath" option

  • @Omarwaqar-pt7wf
    @Omarwaqar-pt7wf10 ай бұрын

    I have one comcern ,what if we are building a production we site that does web scraping using puppetier the I guess it's possible that the website we are scraping can block us so how can we bypass that issue?

  • @MichaelKitas

    @MichaelKitas

    10 ай бұрын

    Check out my latest video on bypassing browser fingerprinting: kzread.info/dash/bejne/ooSFzpaYY6XcZ6g.html&lc=UgxIbun9KNHxiI89RkN4AaABAg

  • @pokeytradetf2582
    @pokeytradetf2582 Жыл бұрын

    Would be dope if you made a selenium full course.

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    Yes, very soon 👍

  • @sekmekci
    @sekmekci Жыл бұрын

    You say "1" all the time in the video, then change it to "5", but you never show how or why you change it. Because of that, it's hard to follow, but I learned a general overview of puppeteer thanks!

  • @jritzeku
    @jritzeku10 ай бұрын

    WOW there is so much valuable info here! Just curious, are these similar techniques used to create something like a sneaker bot? Was hoping to practice the skills learned here and sneakerbot seems like a good one. I'll prob use my own e-commerce app instead since im sure that websites like nike will tools to prevent bots.

  • @MichaelKitas

    @MichaelKitas

    10 ай бұрын

    Thank you, yes, that’s correct 👍

  • @fitter2boss72
    @fitter2boss72 Жыл бұрын

    By monitor looks like we scrap pages (urls) one by one. Not in parallel.

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    No, that's not the case. Monitor shows the queue of links as we scrape a specific amount of links each time

  • @korkut31
    @korkut31 Жыл бұрын

    in a 'loop' using appendFile and WriteFile is not appropriate, this leads memory issues. writeStreams should ne used.

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    Thanks for pointing that out

  • @AnastasisPyriochos
    @AnastasisPyriochos Жыл бұрын

    Very good Job Mike! I am currently into Cypress any suggestions (like a roadmap) on how to make a smooth transition to puppeteer ?Cheers Thanks

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    The course should go through all the basics that you need for smooth transition, if you have any other ideas let me know and I can make a video on them

  • @senceryurdatapan111
    @senceryurdatapan111 Жыл бұрын

    Im getting an error if I want to use puppeteer-extra-plugin-stealth: UnhandledPromiseRejectionWarning: Error: An `executablePath` or `channel` must be specified for `puppeteer-core`

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    If you use puppeteer-core, then as the error suggestes, you need to install chromium and add the path of chromium or chrome as "executablePath" in the launch options

  • @johngenrichpilarta4089
    @johngenrichpilarta4089 Жыл бұрын

    I have a problem in pagination & saving data to csv file timestamp,, in pagination my browser is not paginating it didn't go to page 2 automatically and didn't get any item . I need to click the page one by one to get the items in every page

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    Correct, you need to code it to do so

  • @user-ep3pm2tw1e
    @user-ep3pm2tw1e5 ай бұрын

    I have built an app with Puppeteer but need to ship it. I don’t know how to move it from my local to a cloud or something

  • @MichaelKitas

    @MichaelKitas

    3 ай бұрын

    Making a video on how to host it to AWS Lambda today, otherwise you can use a Window VM or something similar.

  • @Cognitoman
    @CognitomanАй бұрын

    Thanks bro

  • @pwchan9748
    @pwchan9748 Жыл бұрын

    How about a proxy with a credential? Besides, bypassing the ReCaptcha can use speech to text, maybe you can look into it.

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    Use proxy chain to validate proxy: www.npmjs.com/package/proxy-chain

  • @MichaelKitas

    @MichaelKitas

    9 ай бұрын

    Just created a video on proxies, check it out: kzread.info/dash/bejne/g2mlzamqj7jZpMY.html

  • @mod7ex_fx
    @mod7ex_fx Жыл бұрын

    thank you so much brother)

  • @manasmishra9019
    @manasmishra9019 Жыл бұрын

    Hey,great video man. I am facing a bit of problem in pagination as the class of the "next" button is different, any help on that frontier?

  • @MichaelKitas

    @MichaelKitas

    11 ай бұрын

    Thank you, you can replace old selector of "next" button with new selector on code.

  • @matheusmaaia
    @matheusmaaia Жыл бұрын

    Thank you, sir!

  • @mykun8737
    @mykun8737 Жыл бұрын

    hi Michalel, Node-Cron is notwoking on vercel, could you please make a video to help me?

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    It can’t work, Vercel is running server less

  • @pwchan9748
    @pwchan9748 Жыл бұрын

    puppeteer vs selenium, which one is better for intensive automation? like speed, performance?

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    Puppeteer is faster, I use it 99% of the time

  • @danielgillett370
    @danielgillett370 Жыл бұрын

    I'm really enjoying your tutorial! Thank you! I've used puppeteer once before, when it was still newly released. I've got a site that I'd ilke to interact with but it's got a lot of embedded javascript that I can''t seem to get past. Using the pages developer tools I can see the html elements. However, downloading the page, the elements are in javascript files. Is that something you'd like to help me with? I could pay you if we can get it working. If you're interested, please let me know and I'll send you the site. ...it's nothing bad. Just an e-commerce idea that I'm trying out. cheers!

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    Sure, you can send me more info here: mixaliskitas@gmail.com

  • @dzboss5136
    @dzboss5136 Жыл бұрын

    how to rotate proxy autentication using seleniumwire please

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    Will make a video on that soon

  • @DSCSManoj
    @DSCSManoj Жыл бұрын

    Hi Micheal, at 18:25 the program gives an error, saying.querySelector is not a function. Can you please help

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    Can you share your code or is it the exact same as mine?

  • @DSCSManoj

    @DSCSManoj

    Жыл бұрын

    Sorry there was some mistake from my end. Thanks for the early reply.

  • @RumberPlumber-ob3ll
    @RumberPlumber-ob3ll Жыл бұрын

    Can we make it to search certain number of like 30 different text in search under a minute?

  • @MichaelKitas

    @MichaelKitas

    11 ай бұрын

    Not sure exactly of your goal, but yes you can use puppeteer cluster to do multiple searches at the same time to achieve fast results

  • @RumberPlumber-ob3ll

    @RumberPlumber-ob3ll

    11 ай бұрын

    @@MichaelKitas thx for the tutorial puppeteer is better than python its easy to understand and its undetectable

  • @japeter89
    @japeter89 Жыл бұрын

    how can i capture the time it takes for all network requests to finish?

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    You can log time before visiting a page and then visit a page with networkidle2 option and then log time after that is finished

  • @ITEngines
    @ITEngines Жыл бұрын

    can you make videos on python requests.

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    Will do soon 👍

  • @UnhungSign
    @UnhungSign5 ай бұрын

    18:42 - I have an issue, my code is skipping this step entirely so I can't get it to log the product name, I tried messing with my query selector and I added the console log to find out what the program was getting stuck on and found out it just skips this whole code, I have the same code as you up to this step. for(const producthandle of productHandles){ console.log("2"); // pass the single handle const productTitle = await page.evaluate(el => el.querySelector("div > div > span > div > div > div > div.puisg-col.puisg-col-4-of-12.puisg-col-8-of-16.puisg-col-12-of-20.puisg-col-12-of-24.puis-list-col-right > div > div > div.a-section.a-spacing-none.puis-padding-right-small.s-title-instructions-style > h2 > a.a-link-normal.s-underline-text.s-underline-link-text.s-link-style.a-text-normal > span").textContent, producthandle) console.log(productTitle) };

  • @zeddscarlxrd4331
    @zeddscarlxrd4331 Жыл бұрын

    Damn this awsome

  • @danielpaes6457
    @danielpaes6457 Жыл бұрын

    Hello, I'm from Brazil and I had difficulties to apply the content of your video, because the puppeteer version changed and with that it also changed some things that ended up in errors. If you can update the video with puppeteer content from the latest version.

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    Can you share the errors? The core functionalities haven’t changed or not that I noticed

  • @newtonmuthigani

    @newtonmuthigani

    Жыл бұрын

    @@MichaelKitas I get a cannot read property null when adding the s-result-item to get all products what would be they way around this , am trying to scrape the amazon website too

  • @newtonmuthigani

    @newtonmuthigani

    Жыл бұрын

    works after adding try-catch block

  • @duniamotivasi8342
    @duniamotivasi8342 Жыл бұрын

    Brother what themes do you use?

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    Bearded Theme - Arc (VS Code Extension)

  • @duniamotivasi8342

    @duniamotivasi8342

    Жыл бұрын

    @@MichaelKitas thanks 😀

  • @increasinginnumber
    @increasinginnumber Жыл бұрын

    help it says module not found

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    Did you run 'npm install '?

  • @increasinginnumber

    @increasinginnumber

    Жыл бұрын

    @@MichaelKitas Thank you for your reply michael i just needed to save my file before running

  • @evgenysm
    @evgenysm Жыл бұрын

    Thanks a lot for the video! But I've a question regarding the pagination. You do the while loop then the for loop goes over the items, once for loops finishes you check the next button state. I find this approach quite confusing. I think it would be a more clear if you save the "read items script" as a separate function or file and enable this code once navigation to the next page has been done. What do you think about this option?

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    Sure, that’s a more clear approach

  • @evgenysm

    @evgenysm

    Жыл бұрын

    @@MichaelKitas thanks for a quick answer, do you have an example of how this can be done? Not sure how to implement it

  • @nothaiderali
    @nothaiderali Жыл бұрын

    Theme name?

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    Bearded Theme - Arc

  • @apostoloskotsiras9458
    @apostoloskotsiras9458 Жыл бұрын

    oreos aderfe

  • @phantazzor
    @phantazzor Жыл бұрын

    I will forever get that error for the heroku version: Error: Failed to launch the browser process! spawn /Applications/Google Chrome ENOENT

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    You need to use a different executablePath on heroku I show how to do that in the tutorial

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    @@phantazzor Yes, at 2:25:00

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    @@phantazzor I don't understand what your are saying. I though the issue was on heroku

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    @@phantazzor If i didn't do it then it's not required, I am saying it's an option

  • @MichaelKitas

    @MichaelKitas

    Жыл бұрын

    @@phantazzor In the video I show heroku method as well. Thanks :)