Web automation with JavaScript for beginners | Puppeteer

  Рет қаралды 134,285

Hitesh Choudhary

Hitesh Choudhary

Күн бұрын

Пікірлер: 187
@chandanrout5404
@chandanrout5404 5 жыл бұрын
I have used puppeteer to generate PDF in node js for my college project . It's really nice to work with.
@prateekdas3334
@prateekdas3334 5 жыл бұрын
I love coding and You helped me to fall in love with coding.
@yogeshdeveloper5346
@yogeshdeveloper5346 5 жыл бұрын
Bro, he is an example of a true teacher!!! (DRONACHARYA)
@devopswithabhi07
@devopswithabhi07 4 жыл бұрын
Make more video on Automation Testing
@AlbedoShorts
@AlbedoShorts 4 жыл бұрын
me also
@dbsdenis81
@dbsdenis81 4 жыл бұрын
Usage examples: > Array.from(document.querySelectorAll('.mw-headline')).map( h => h.innerText); > [...document.querySelectorAll('.mw-headline')].map( h => h.innerText);
@laughme7566
@laughme7566 4 жыл бұрын
what is the name of the outro song
@SuperNickSom
@SuperNickSom 3 жыл бұрын
Nice introduction! 10:55 doing $$(".mw-headline").map(h => h.innerText) can get you there quicker.
@rajatsingh2614
@rajatsingh2614 5 жыл бұрын
You need not write a callback function to wait the page. There is a waitfor function in which you can pass miliseconds to wait the page. Like - page.waitFor(5000) Then it wait for 5 sec. Before close the browser.
@HiteshCodeLab
@HiteshCodeLab 5 жыл бұрын
Thanks
@harshit741
@harshit741 4 жыл бұрын
@@HiteshCodeLab or you can just remove browser close function
@rajeshwarkashyap
@rajeshwarkashyap 5 жыл бұрын
thank you, sir, apse Mai bahut inspire Hua hu, main web development chorna chahta tha, apke videos dekh karke bahut kuch sikhnane aur janne ko milta hai, thanks you for teaching us. love from Chhattisgarh😘😘
@gauravvishwakarma____3330
@gauravvishwakarma____3330 5 жыл бұрын
आपका बहुत बहुत धन्यवाद ,हितेश जी वीडियो बनाने के लिए।
@snghnishant
@snghnishant 5 жыл бұрын
Don't try to web scrap popular websites(fb, twitter, LinkedIn). They'll ban your ip and you can even get into trouble for scraping data. Scraping comes with a lot of risk. And there is nothing to worry about scraping publicly available data on the internet or from websites not configured properly.
@HiteshCodeLab
@HiteshCodeLab 5 жыл бұрын
Thanks for valuable information.
@snghnishant
@snghnishant 5 жыл бұрын
@@HiteshCodeLab :)
@jasonhall6526
@jasonhall6526 2 күн бұрын
I scrape the shit out of facebook all the time.
@ScaredDonut
@ScaredDonut 3 жыл бұрын
Need to learn more of this stuff. 99.99% of my job can literally be automated.
@danesparza77
@danesparza77 2 жыл бұрын
Wow -- that sample wikipedia page aged pretty well.
@fastlearner9993
@fastlearner9993 2 жыл бұрын
lol for real !
@The_Python_Turtle
@The_Python_Turtle 3 жыл бұрын
Wow covid19 in feb 2020 - def look more into this - wise words, wish more people did this one year ago !!!
@AgarwalAnup95
@AgarwalAnup95 5 жыл бұрын
Lovely content A small trick for youtubers: go to the end of the video and play restart to avoid ads. And yeah "You are welcome" 😅😜
@laughme7566
@laughme7566 4 жыл бұрын
just use a adblocker instead and what's the name of the outro song
@joematkin2554
@joematkin2554 4 жыл бұрын
This guy won't get any revenue tho :(
@sowjanyajuvvala2698
@sowjanyajuvvala2698 5 жыл бұрын
Very Good to hear automation related stuff through you.. Hitesh garu .. Keep posting..
@adampatel4523
@adampatel4523 2 жыл бұрын
That was great tutorial you don’t need to be criticise yourself your doing great!
@eborne66
@eborne66 4 жыл бұрын
Great tutorial. I like the way you demonstrate the flexibility of puppeteer and explain the documentation. I actually have a running start on how to scrape web pages in JS. Way more dynamic than python scraping. Thanks!
@Ligilvj
@Ligilvj 5 жыл бұрын
Woah, today I decided to learn puppeteer and was going through docs, and guess what, your video notification pops up. Jinx
@fredsoda3034
@fredsoda3034 Жыл бұрын
This was an amazing video. You did an amazing job!
@prasanna.purohit9853
@prasanna.purohit9853 4 жыл бұрын
Its crisp video I loved,it will be great if architecture is explained along with how it works which already explained beautifully Thank you very much Could you please take CodeceptJS as next topic
@ourcrazyworld6281
@ourcrazyworld6281 3 жыл бұрын
That explanation was rlly great
@86ajmn
@86ajmn 3 жыл бұрын
Thank you Hitesh, very helpful!
@chaittnyashinde2133
@chaittnyashinde2133 5 жыл бұрын
I have used puppeteer for my eCommerce website scraping project. It is an amazing library.❤️
@namanjindal3089
@namanjindal3089 3 жыл бұрын
For sure more videos on Puppeteer.
@Ravichawla68
@Ravichawla68 3 жыл бұрын
Which theme are you using in VS code?
@tedchirvasiu
@tedchirvasiu 3 жыл бұрын
Ahh, good ole Corona in February 2020. Good times, good times.
@codedheart
@codedheart 5 жыл бұрын
Amazing👍🏻😍 Love from Nepal❤
@vikasjadhav0203
@vikasjadhav0203 5 жыл бұрын
Yes please create series on Puppeteer. Will be waiting for same.
@CancunCrow
@CancunCrow 3 жыл бұрын
You're really a great teacher!
@yuzararyadi7843
@yuzararyadi7843 4 жыл бұрын
Thanks for this video. Help me much. Keep it up man
@kelvintakyi-bobi3155
@kelvintakyi-bobi3155 2 жыл бұрын
I really enjoyed your lesson 😊🙏
@stevetulig1019
@stevetulig1019 3 жыл бұрын
Awesome! Thanks very much.
@ImranSheikh-kg4qd
@ImranSheikh-kg4qd 5 жыл бұрын
Nice video. love from Bangladesh
@yogeshdeveloper5346
@yogeshdeveloper5346 5 жыл бұрын
Hey Hitesh, the video is slightly down (noisy, to be precise). May be camera settings are not good. Have a look. And apart from that, the content is on the infinite quality. Thanks for this great work!!!
@HiteshCodeLab
@HiteshCodeLab 5 жыл бұрын
Thanks for comment. Can you please let me know the time of noise. Is it in screen recording part or intro part. I will surely fix it
@yogeshdeveloper5346
@yogeshdeveloper5346 5 жыл бұрын
@@HiteshCodeLab The screen recording is a bit blurry & the Normal full screen video (intro) have a little bit of noise.
@yogeshdeveloper5346
@yogeshdeveloper5346 5 жыл бұрын
@@HiteshCodeLab i just realized that, there's no quality down noticed in mobile view, but when we switch to 1080p monitor it seems to be as described.
@geetramchandani1167
@geetramchandani1167 5 жыл бұрын
Yes.. More videos on Web Automation are welcome.
@chrisneisen657
@chrisneisen657 4 жыл бұрын
You're the best!!! thank you thank you thank you!!
@gokilavanis6157
@gokilavanis6157 5 жыл бұрын
Please continue your videos with web automation
@rajeshbhattarai5934
@rajeshbhattarai5934 5 жыл бұрын
Video on integrating payment gateway in the website
@karansoni3543
@karansoni3543 5 жыл бұрын
Yes I want more video like this.
@mariakats35
@mariakats35 2 жыл бұрын
Thanks for your presentation about puppeteer, please make more videos on the same
@learningbird4732
@learningbird4732 5 жыл бұрын
Amazing.. Please make more such videos
@deepakarthikeyan3109
@deepakarthikeyan3109 4 жыл бұрын
Informative video.thanks for sharing
@nikhiljose2029
@nikhiljose2029 5 жыл бұрын
Which vscode theme are you using ?
@amanr11314
@amanr11314 5 жыл бұрын
Same thing i need to know
@himanshupathak6802
@himanshupathak6802 5 жыл бұрын
More such videos sir please
@souptiksaha5
@souptiksaha5 5 жыл бұрын
Sir I was looking forward for this kind of video.. your way of explaining is very easy to grasp
@golubovicm
@golubovicm 3 жыл бұрын
Great tutorial! Thank you.
@akshaymane8315
@akshaymane8315 5 жыл бұрын
Amazing video sir, I am software tester , and i know only selenium+java and protractot+javascript but I was not aware about papeteer, i will definitely try this Thanks (Automate World)
@samadritsarkar2
@samadritsarkar2 5 жыл бұрын
I want more videos on JavaScript and NodeJs.
@unyieldingjarnail
@unyieldingjarnail 5 жыл бұрын
Awesome. I request you do deep webscraping with this and save that to database please. That's my request for next video . Thank you Sir and it's always great stuff from you
@ahmedgarhy5166
@ahmedgarhy5166 4 жыл бұрын
Thank you very much! this video summerized the Puppeteer idea for a beginner.
@beingabstrac
@beingabstrac 4 жыл бұрын
Hey @Hitesh Choudhary, nice tutorial! Got stuck, how do I do this - 1. Open a webpage (you see list of items) 2. Click an item - you go inside item detail page 3. Extract data from the detail page (like name, desc, images...) 4. Now store all this data as a markdown file (.md) with the item name as the file name 5. Repeat the same for 300+ items P.S. the class names are complex(with weird names and numbers). How do I use the same with XPATH? Thanks in advance!
@ahmedhashem9971
@ahmedhashem9971 5 жыл бұрын
Love from Egypt 💗❤💗
@robomanrobo6777
@robomanrobo6777 4 жыл бұрын
Yeah Definitely web scraping. Thanks
@Caleul.C
@Caleul.C 4 жыл бұрын
i'm having some issues. first off all: "throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'original', 'function');" TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type function
@Caleul.C
@Caleul.C 4 жыл бұрын
please help
@rohandevaki4349
@rohandevaki4349 4 жыл бұрын
nice one, but why didnt you use selenium, here, since it is popular for automation. which one is better "puppeter" or "selenium"
@spontaneousjr.8351
@spontaneousjr.8351 3 жыл бұрын
amazing explanation
@amnamushtaq6803
@amnamushtaq6803 4 жыл бұрын
for each new project we will have to write npm init -y and npm install puppeteer for once?
@GreatNewo
@GreatNewo 4 жыл бұрын
Hey Hitesh I saw your KZbin video about Web automation in python for beginners. It was very interesting but what I want to do is open windows clicking a link then clicking for a specific item and every time I click that link the item is in another spot so I might even have to go to the next page to find it. I do this a lot but it’s a lot of work, if you could show me how to automate it that would be awesome!
@CancunCrow
@CancunCrow 3 жыл бұрын
I'm curious how to set multiple threads (browsers) in Puppeteer Stealth. Also how do I load resources as variables so i can fill out sign up forms with those variables?
@sumanth8296
@sumanth8296 5 жыл бұрын
Hey dude! Please mention that vs code theme and font
@paristar3079
@paristar3079 4 жыл бұрын
It's horrible
@kaptandspadb6718
@kaptandspadb6718 4 жыл бұрын
Please anybody can help,, for example i have login to a website thant shows certain data in javascript tabel,, ini the dropdownlist menu,, there are only three option of number of showing data, which are 10, 50, and 100. How to for example i want to show all the data not only 100 data. But all the data that i search with certain criteria. Thanks
@olegmaz3969
@olegmaz3969 4 жыл бұрын
Is it possible to check data from server by Jest and Puppeteer ?
@juniqureshi1798
@juniqureshi1798 4 жыл бұрын
I run it and the screenshot is not working, i coped exactly what you did, i am just learning node and puppeteer, and would like help?
@kvncnls
@kvncnls 4 жыл бұрын
How much node do you have to know to make full use of Puppeteer?
@amnamushtaq6803
@amnamushtaq6803 4 жыл бұрын
if we will delete whole folder i-e youtubefun then we will install puppeteer again?
@asmmisfar
@asmmisfar 5 жыл бұрын
Please do open and search youtube channel using puppeteer like u did using selenium.
@maltherunner
@maltherunner 4 жыл бұрын
is there a way to access that page variable from another function?
@gokilavanis6157
@gokilavanis6157 5 жыл бұрын
I started to learn coding.The way you teach made me fall with them. My question is you usually use the word terminal..what is meant for ? As I am a beginner I don't get what it is!
@botgod6264
@botgod6264 4 жыл бұрын
A terminal is dependant on the server. Often seen in the wild as a monitor and keyboard alone. Maybe a small bit of hardware. In this video usage it appears to be referring to the apple name for a command prompt interface.
@EnglishRain
@EnglishRain 4 жыл бұрын
Thank you excellent video!
@saranyab2304
@saranyab2304 3 жыл бұрын
Sir do u have Playlist for this?pls provide link of this series
@anubhabbhattacharya3644
@anubhabbhattacharya3644 4 жыл бұрын
Sir can I use selenium in JavaScript as I want the use of x path
@axaysushir
@axaysushir 5 жыл бұрын
Can we make some file manager with it , that copy and move file to certain folder when our work done. I think that's interesting and useful for small automation projects too.
@animeshsamanta3444
@animeshsamanta3444 3 жыл бұрын
when i take Screen short i get it as this web site currently not available in your region
@bibhashkumar2155
@bibhashkumar2155 4 жыл бұрын
Thanks for the video. Is it possible to automate reading of browser bookmarks???????
@shivanisaini1652
@shivanisaini1652 4 жыл бұрын
I want to know that what are the career opportunities in puppeteer?.
@rohitjyoti9071
@rohitjyoti9071 4 жыл бұрын
yes plz make more videos on it
@Urtechquery
@Urtechquery 5 жыл бұрын
Can I login in any website using curl???
@boyapatiramakrishna2068
@boyapatiramakrishna2068 4 жыл бұрын
Dear sir, is puppeteer good or selenium is good for web automation / web scrapping? Please reply to my question. I did not listen selenium in your videos. I have listen lot of your videos.
@waqasrahman6174
@waqasrahman6174 4 жыл бұрын
Fantastic Sir !!!! Please do a video on Socket.io with NodeJs
@YouAndImpact
@YouAndImpact 5 жыл бұрын
Great video.👍🏻
@samms7922
@samms7922 4 жыл бұрын
1-Web scraping is illegal? 2-puppeteer is written (made) in pure JavaScript code? or it's written in other languages like python?
@draszi
@draszi 4 жыл бұрын
How do I pass this information to an HTML page to display?
@elle9834
@elle9834 4 жыл бұрын
im stuck at the first bit, i run the code for getting a snapshot of wiki but it just says Error: Cannot find module 'puppeteer' EDIT: NVM im an idiot and installed puppeteer core instead of of puppeteer
@shashanksinha6158
@shashanksinha6158 5 жыл бұрын
Please make a video on tenserflow
@pratikdhande826
@pratikdhande826 5 жыл бұрын
Sir, please make full course on AngularJs.
@valerii5096
@valerii5096 4 жыл бұрын
Well it's funny that I am watching this video at 3 am after trying multiple applications that actually didn't work. All I need is to automate several actions, I have tried iMacros, CAB and UI.Automation, maybe I'm just too stupid to use them properly lol. So, I have a question. I have a web page, I need to copy the information from one field (it doesn't look like a field, just one or two words) to another field, I have thousands of such pages (every time I need to copy and paste different information) and I want to automate these actions, because they are very time consuming. Maybe you can recommend me a good tutorial based on JS? I am have 0 coding skills, about 2 years ago I just tried to learn something in JS lol.
@arjuarnvedchaclaop9217
@arjuarnvedchaclaop9217 4 жыл бұрын
man this has aged well with that corona virus advice.
@RetroCode0011100100110111
@RetroCode0011100100110111 5 жыл бұрын
With this tool i can Make thinks similar like in jmeter?
@Bisibletoanyoneonyoutube
@Bisibletoanyoneonyoutube 2 жыл бұрын
I am not getting how to get rid of that promise error, only the copied snippet is working without promise err. plz help me someone
@mudandmoss4132
@mudandmoss4132 4 жыл бұрын
Can you do a tutorial to use puppeteer to scrape data from a password protected page
@surya4348
@surya4348 4 жыл бұрын
Sir...can we perform same action or operation on 2 or more tabs(all tab contains same website) at the same time(simultaneously) with help of selenium automation?
@oghidden
@oghidden 4 жыл бұрын
1. Yes you can setup multiple tabs to run async. 2. This would be a replacement for selenium
@anjali3928
@anjali3928 4 жыл бұрын
Sir, Thanks for this video, How can we auto fill captcha using same tech stack????
@abishekp.y4736
@abishekp.y4736 5 жыл бұрын
Can I use puppeteer for my backend server?
@arifdevcoding
@arifdevcoding 3 жыл бұрын
is there any library like this in PHP?
@mutalemulenga8708
@mutalemulenga8708 4 жыл бұрын
How can you run that from the browser?
@Shubham-jv6dp
@Shubham-jv6dp 3 жыл бұрын
I am getting an error saying that chrome is being controlled by an automated software, can someone please help me out
@amolchaudhari9000
@amolchaudhari9000 4 жыл бұрын
please need videos for login and registration page with puppeteer automation
@himanidalal1830
@himanidalal1830 5 жыл бұрын
We want more videos on automation
@nagendrapp2213
@nagendrapp2213 5 жыл бұрын
Which theme u r using ?
@aryangupta7414
@aryangupta7414 5 жыл бұрын
What theme are u using in vs code
@harshjhunjhunuwala
@harshjhunjhunuwala 5 жыл бұрын
If possible then More videos for automation please 🙂
@jeetmukherjee9653
@jeetmukherjee9653 5 жыл бұрын
Make more videos on automation. I'm loving it.
@MaxOnMaxxer90
@MaxOnMaxxer90 4 жыл бұрын
If you create an application with this code, will it not be really weird for a user to see some browser open and close very quickly? It is headless, but I think users will notice something happening?
@0tiii
@0tiii 3 жыл бұрын
do you know what headless means?
This is how I scrape 99% websites via LLM
22:44
AI Jason
Рет қаралды 197 М.
A Guide to Web Scraping with Node.js
9:54
Fireship
Рет қаралды 386 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
JavaScript Course for Beginners - Your First Step to Web Development
48:17
Programming with Mosh
Рет қаралды 13 МЛН
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 4,3 МЛН
Modern Web Testing and Automation with Puppeteer (Google I/O ’19)
29:46
Chrome for Developers
Рет қаралды 79 М.
Web Scraping like a GOD with Javascript
8:17
typecraft
Рет қаралды 59 М.
Always Check for the Hidden API when Web Scraping
11:50
John Watson Rooney
Рет қаралды 657 М.
I built the same app 10 times // Which JS Framework is best?
21:58
Fireship
Рет қаралды 2,6 МЛН
JavaScript Pro Tips - Code This, NOT That
12:37
Fireship
Рет қаралды 2,5 МЛН
Learn React Query In 50 Minutes
51:09
Web Dev Simplified
Рет қаралды 319 М.
Node.js Tutorial for Beginners: Learn Node in 1 Hour
1:18:16
Programming with Mosh
Рет қаралды 6 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН