Web Scraping With Javascript (Puppeteer Tutorial)

Поделиться
HTML-код
  • Опубликовано: 16 окт 2024
  • Learn puppeteer in less than one hour. Since I had to take down 3 of the videos I had on my puppeteer series I decided to make this video. I will go over the basics of web scraping and browser automation in NodeJS.
    🚀 Learn ReactJS By Building 6 Projects: codedamn.com/l...
    Social
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    Website: machadopedro.com
    Linkedin: / machadop1407
    Instagram: / _pedro.machado_
    Github: github.com/mac...
    Email: machadop1407@gmail.com
    Tags:
    Puppeteer
    Web Scraping
    NodeJS Tutorial
    API Tutorial

Комментарии • 75

  • @juanhenriquerezende
    @juanhenriquerezende 3 года назад +10

    Estou maratonando seu canal e feliz por ter encontrado ele. Você ensina mto melhor q varios professores de curso q eu paguei pra ter, parabéns pela didática e pelo conteúdo q você vem trazendo.

  • @erickgutierrez5260
    @erickgutierrez5260 2 года назад +6

    Awesome videos man, congratulations and thanks for your so clear explanation on all of them!

  • @SachinSharma590
    @SachinSharma590 2 года назад +1

    Awesome explanation man... After looking to more than 10 videos about web scraping i can definitely say your is the best

  • @ghettosmurfph
    @ghettosmurfph 2 года назад +3

    One of the best tutorials on this, well done!

  • @TheNamesJT
    @TheNamesJT 3 года назад +5

    You don't need that weird function syntax Pedro? you can just create an async arrow function and then put everything inside that and make sure to call that function outside of it to initialize it once you finished your scraping.

  • @tech3425
    @tech3425 2 года назад +1

    Always the best place to start learning something new

  • @alejandroaquino3186
    @alejandroaquino3186 3 года назад +2

    Thanks for this, bro! I've been trying to find a decent course on web scraping with nodejs but most suck!

  • @adanulabidin
    @adanulabidin 7 месяцев назад

    Thank you so much dude. Amazingly explained and well structured video. Keep it up 🎉

  • @jtothey1993
    @jtothey1993 Год назад

    Very concise and easy to follow. Great video.

  • @StanislavBrusgul
    @StanislavBrusgul Год назад

    Best video for puppeteer.. Great Video! Thank you

  • @danangponorogo166
    @danangponorogo166 3 года назад +3

    At last I found a reason of why your 2 puppeteer tutorial is missing .. :D

    • @PedroTechnologies
      @PedroTechnologies  3 года назад +1

      Yeah, i felt really bad cause i really liked that series hahaha

    • @levihalperin7649
      @levihalperin7649 2 года назад

      Maybe you can upload it as private and share the link to it in this videos description

  • @TheNamesJT
    @TheNamesJT 3 года назад +1

    I wounder what the legality is if you plan to offer a scraping service on fiverr and one of your clients ask to scrape data on a website that doesn't allow scraping? how can you find if a website doesn't or allows web scraping? i looked on some terms of uses and privacy policies but can't find any hits when using find and searching keywords like scraping, web scraping ect.

  • @devcoder6326
    @devcoder6326 Год назад

    Pretty simple to understand, good job!

  • @fal8202
    @fal8202 Год назад

    Thanks , very concise way of teaching and fun to follow

  • @htcsaj7876
    @htcsaj7876 3 года назад +2

    Hey Pedro, amazing tutorial. How to add realtime notifications to this scraping.Is is possible

  • @PodDropBits
    @PodDropBits 2 года назад

    awesome tutorial man! Can you do one where you crawl and scrape? I am new to all of this and with you learned the scraping part thanks.

  • @FPLogistic
    @FPLogistic 2 года назад +1

    Great explanation, subscribed!

  • @444ous
    @444ous 2 года назад

    Thanks for this one as well, Pedro!

  • @its_lilcent9916
    @its_lilcent9916 2 года назад

    I love this video, thank you so much for all the informations.

  • @shoprecartteam9567
    @shoprecartteam9567 3 года назад +1

    Please make a video on apollo server express backend and nextjs ssr with authentication with cookies apollo client. It will be a good one. And thanks for quality contents

  • @levihalperin7649
    @levihalperin7649 2 года назад +1

    What about using js path of xpath to find specific button?

  • @mariuslancha
    @mariuslancha Год назад

    very insightful dude

  • @AlexIvanov-uh1yz
    @AlexIvanov-uh1yz Год назад

    Thx so much, you've got new subscriber!

  • @michelgerges2678
    @michelgerges2678 2 года назад

    THIS IS SO SICK THANK YOU🚀

  • @shashikant1166
    @shashikant1166 2 года назад

    nice explanation , thnx from INDIA

  • @MrYopisimoni
    @MrYopisimoni 2 года назад

    thank you for a such good videos you publish

  • @danielaugusto719
    @danielaugusto719 2 года назад

    Thanks man, this was very helpfull

  • @thatolebethe8896
    @thatolebethe8896 3 года назад

    how do u deal with pagination. For example I want to scrape Amazon books and there's 50 pages each with books and I want to grab all books across 50 pages

  • @mitalisalaria265
    @mitalisalaria265 Год назад

    enjoyed it ,great work

  • @linamariafernandezcardona2433
    @linamariafernandezcardona2433 2 года назад

    Very nice video, can you maybe make one on how to scrape SPA's?

  • @thulasiramg246
    @thulasiramg246 2 года назад

    Awesome tutorial …can you explain how to access HTML elements style lik font family,size,color,width,…etc

  • @zacharykrivda140
    @zacharykrivda140 2 года назад

    How would you cycle through and click all of the buttons on a page that all have the same class?

  • @juguetestoys1137
    @juguetestoys1137 2 года назад

    great ! how can I copy the data obtained, inside a html div, instead of viewing it, in console. thanks

  • @MrRossss1
    @MrRossss1 2 года назад

    Great stuff. Thank you

  • @XELTRA1
    @XELTRA1 2 года назад

    how to click checkbox hCaptchs and select images ?? can you make it a video???

  • @tristetempsj5893
    @tristetempsj5893 2 года назад

    Awesome !

  • @jacobabraham6453
    @jacobabraham6453 2 года назад

    Goat

  • @aice0927
    @aice0927 2 года назад

    How to grab the data using its custom attribute?

  • @abdelrhmanrhyaseen6194
    @abdelrhmanrhyaseen6194 Год назад

    Super cooool

  • @heitormbonfim
    @heitormbonfim 2 года назад +1

    Great Video, broh, but I come to think "hell, what a brazilian name you've got" hahaha

  • @thatolebethe8896
    @thatolebethe8896 3 года назад

    Thanks for video really good

  • @anakin2389
    @anakin2389 Год назад

    I rececived an error:failed to launche the browser process.PLease help me

  • @ashimov1970
    @ashimov1970 Год назад

    I wonder if RUclips allows webscraping it

  • @aymenbachiri-yh2hd
    @aymenbachiri-yh2hd 6 месяцев назад

    Thank You

  • @Star-hw8bh
    @Star-hw8bh 2 года назад

    thank you for this

  • @RahulShinde-xs9rl
    @RahulShinde-xs9rl 3 года назад +2

    Thanks

    • @RahulShinde-xs9rl
      @RahulShinde-xs9rl 3 года назад +1

      Nice Video 👍🏼 I was looking for such type of content from long time. Thanks you're Amazing 🤗. Please continue the series on puppeteer.

    • @PedroTechnologies
      @PedroTechnologies  3 года назад

      Thank you Rahul! I really appreciate the support!

  • @wf2w323
    @wf2w323 2 года назад

    i love you man

  • @rezaulmasum205
    @rezaulmasum205 3 года назад

    some websites disable document object as a result it is impossible to scrap data from that, could show us how to resolve it ?

    • @PedroTechnologies
      @PedroTechnologies  3 года назад +1

      You can easily add a user agent to puppeteer which fixes this. I go over it in my other puppeteer series. I should have mentioned it in this video :)

    • @rezaulmasum205
      @rezaulmasum205 3 года назад

      @@PedroTechnologies waiting for that

  • @patrycjamichaek8794
    @patrycjamichaek8794 Год назад

    Is your website down?

  • @bg-sj9tx
    @bg-sj9tx 3 года назад

    Can u do with captcha

  • @yuvraj2274
    @yuvraj2274 2 года назад

    Hello sir Please help me building product comparison website using web scraping in javascript please make video on it

  • @alperenyildirim821
    @alperenyildirim821 2 года назад

    The tutorial is good but the only thing that I didn't like is that you didn't use ".quote > span.text" to get the quotes themselves directly yet instead, you wrote extra lines of code to get that. Also to get the author info, ".quote > span > .author" or ".quote .author" could have been used.

  • @josephwong2832
    @josephwong2832 3 года назад

    awesome

  • @giribabuanisetti3450
    @giribabuanisetti3450 3 года назад

    can you make next video on MERN stack

  • @erfanm4805
    @erfanm4805 2 года назад

    nice

  • @RahulRoy-um8rs
    @RahulRoy-um8rs 2 года назад

    Can be solve epub to html

  • @nelohenriq
    @nelohenriq 2 года назад

    Are you portuguese?

  • @NolanMakatche
    @NolanMakatche 2 года назад

    Your website is down :(

  • @first275
    @first275 3 года назад

    Instead of series bring a full length crash course

  • @junky3445
    @junky3445 2 года назад

    great tutorial only problem was I couldn't get it to work on edge browser cause I refuse to get chrome, I used puppeteer-core, and edge-paths which is recommend for edge and imported my executablePath property to the browser await function and still nothing, looked all over could't find a solution.

    • @mandayli9641
      @mandayli9641 2 года назад +2

      simple solution, sto refusing to get chrome

  • @prateektiwari4116
    @prateektiwari4116 3 года назад

    I am trying very hard to learn mern by my own but i got struck while storing jwt auth token on cookie... It is not storing any cookie while making post rqst in node js....
    Plss pedro if u can help me anyhow
    Thank You

  • @thevasupodcast4561
    @thevasupodcast4561 2 года назад

    in last example I tried to logout after the login using
    await page.click('a[href="/logout"]');
    but it didn't work, it worked when I copy pasted it 2 times. why is it not working with only a single line??

    • @randohundo9795
      @randohundo9795 2 года назад

      May I suggest something that might be stupid? Try to give it a few moments before performing the action. Set a timeout of a few seconds and check if it works that way. I might be completely wrong but I think it has something to do with the action being asychronous. Again, this might be wrong, but it's worth a try if you have time.