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.
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!
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?
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`
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
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.
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
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
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 TH-cam 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.
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) };
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!
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 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
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?
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!
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.
I got an interview a day after and you are saving me with this
Thanks bro :) This is the best tutorial on youtube about web scrapping in node . Keep it up :)
Very intutive and friendly pupettier tutotial we need :)
Μπραβο Μιχάλη! Πολύ ωραίο turorial οτι χρειαζόμουν για να φτιάξω scraping script για ένα πελάτη. Ευχαριστώ πολύ
God Bless You Man!
Really awesome tutorial.
Thanks a bunch!😄
39:52 sudden jump where code has changed. Having a lot of trouble following..
Sorry about that, editing mistake
Hi Micheal, at 18:25 the program gives an error, saying.querySelector is not a function. Can you please help
Can you share your code or is it the exact same as mine?
Sorry there was some mistake from my end. Thanks for the early reply.
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!
You need to download chromium locally and specific it's path using "executablePath" option
hi Michalel, Node-Cron is notwoking on vercel, could you please make a video to help me?
It can’t work, Vercel is running server less
Thank you for the tutorials!
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?
Check out my latest video on bypassing browser fingerprinting: th-cam.com/video/pPQl4_3Bv7E/w-d-xo.html&lc=UgxIbun9KNHxiI89RkN4AaABAg
How about a proxy with a credential? Besides, bypassing the ReCaptcha can use speech to text, maybe you can look into it.
Use proxy chain to validate proxy: www.npmjs.com/package/proxy-chain
Just created a video on proxies, check it out: th-cam.com/video/Q5qkGq_Ustc/w-d-xo.html
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?
Thank you, you can replace old selector of "next" button with new selector on code.
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`
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
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.
Thank you, yes, that’s correct 👍
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
Correct, you need to code it to do so
how to rotate proxy autentication using seleniumwire please
Will make a video on that soon
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
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
By monitor looks like we scrap pages (urls) one by one. Not in parallel.
No, that's not the case. Monitor shows the queue of links as we scrape a specific amount of links each time
puppeteer vs selenium, which one is better for intensive automation? like speed, performance?
Puppeteer is faster, I use it 99% of the time
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 TH-cam 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.
Nice idea, will do that soon
in a 'loop' using appendFile and WriteFile is not appropriate, this leads memory issues. writeStreams should ne used.
Thanks for pointing that out
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
Making a video on how to host it to AWS Lambda today, otherwise you can use a Window VM or something similar.
Can we make it to search certain number of like 30 different text in search under a minute?
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
@@MichaelKitas thx for the tutorial puppeteer is better than python its easy to understand and its undetectable
Thank you, sir!
Would be dope if you made a selenium full course.
Yes, very soon 👍
Brother what themes do you use?
Bearded Theme - Arc (VS Code Extension)
@@MichaelKitas thanks 😀
how can i capture the time it takes for all network requests to finish?
You can log time before visiting a page and then visit a page with networkidle2 option and then log time after that is finished
thank you so much brother)
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)
};
help it says module not found
Did you run 'npm install '?
@@MichaelKitas Thank you for your reply michael i just needed to save my file before running
I haven’t watched the whole series. I’m going to though
Thanks bro
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!
Sure, you can send me more info here: mixaliskitas@gmail.com
Theme name?
Bearded Theme - Arc
can you make videos on python requests.
Will do soon 👍
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.
Can you share the errors? The core functionalities haven’t changed or not that I noticed
@@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
works after adding try-catch block
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?
Sure, that’s a more clear approach
@@MichaelKitas thanks for a quick answer, do you have an example of how this can be done? Not sure how to implement it
Damn this awsome
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!
oreos aderfe
I will forever get that error for the heroku version:
Error: Failed to launch the browser process! spawn /Applications/Google Chrome ENOENT
You need to use a different executablePath on heroku I show how to do that in the tutorial
@@phantazzor Yes, at 2:25:00
@@phantazzor I don't understand what your are saying. I though the issue was on heroku
@@phantazzor If i didn't do it then it's not required, I am saying it's an option
@@phantazzor In the video I show heroku method as well. Thanks :)