Web Scraping Cragslist using Node.js/Cheerio/Request in ES7 JavaScript

Поделиться
HTML-код
  • Опубликовано: 18 янв 2025

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

  • @fantasyteamshorts6112
    @fantasyteamshorts6112 4 года назад

    Can you make a video on scraping live data using Cheerios

  • @christianmorales3496
    @christianmorales3496 6 лет назад

    nice video i have a question what can i do in the scrapeDescripcion method when the promises doesnt resolve, i mean i have 107 promises sometimes y receibe th result but sometimes i dont

    • @reactnativetutorial651
      @reactnativetutorial651  6 лет назад

      It could be your network connectivity that's slow, if some of the promises resolve fine. Perhaps the concurrent/parallel firing of the request.get is too much for your network. Try making a simple for loop with an await inside, so it's sequential and would ensure a slower but more stable connection. Make sure first though that you have some try/catch clause to print out any errors you get, they might give a pointer on what's wrong.

  • @srijansingh8272
    @srijansingh8272 4 года назад

    how to do infinite page scrolling in cherio

  • @mrneverzero9084
    @mrneverzero9084 6 лет назад

    I'm sorry Stefan Hyltoft. I feel sad !!! Because I ask you a lot. Thanks for sharing your helpful video !!! I just learned the programming language two weeks ago. Now I understand more about it, thank you very much !!! I hope you can help me in the end. I have problems when scraping 3 tiers (page1 => page2 => page3). Your video is scraping 2 floors. (page1 => page2). Can you help me, make a video tutorial on scraping 3 floors ?? Thank you very much !!! love you forever

  • @mrneverzero9084
    @mrneverzero9084 6 лет назад +1

    Thanks. I love you !!! I hope you out video: array = >> csv. I do not know how to export the csv file from above code. Thanks very much. I'm sorry my english is bad !!!

    • @reactnativetutorial651
      @reactnativetutorial651  6 лет назад

      SHARK TANK MỸ Your English is fine :) I will make a video about how to get the csv just for you :)

    • @reactnativetutorial651
      @reactnativetutorial651  6 лет назад

      You can see the video here, enjoy :)! ruclips.net/video/FO8fsy1URfE/видео.html

    • @mrneverzero9084
      @mrneverzero9084 6 лет назад

      thanks !!! love

  • @makjunior4558
    @makjunior4558 6 лет назад

    Hi,
    I have an issue ... when I try to scrape the product name and price from this link :www.shwapno.com/categories/fruits--vegetables-vegetables/cid-CU00336652.aspx
    I get no result just an empty space in the console....
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    here's my code :
    const request = require('request');
    const cheerio = require('cheerio');
    request("www.shwapno.com/products/meat--fish-meat-beef/other/beef-tongue/pid-12100256.aspx", (error, response, html)=>{
    if(!error && response.statusCode == 200){
    const $ = cheerio.load(html);
    const data = $('.mtb_price').text();
    console.log(data);
    }
    });
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    I've tried in many ways ... but still no luck ... also tried with the python but getting same result... what's the problem ?

  • @mrneverzero9084
    @mrneverzero9084 6 лет назад

    Can you help me ? 😢😢😢 scraping 3 floors !!! 😘😘😘

  • @top5bian272
    @top5bian272 6 лет назад

    good video !!!

  • @mrneverzero9084
    @mrneverzero9084 6 лет назад

    please help me "electron-packager API"
    Thanks 😘

    • @maiyeutramanh1652
      @maiyeutramanh1652 6 лет назад

      I also need data packets !!! But I love Stefan Hyltoft more than you haha :D

    • @reactnativetutorial651
      @reactnativetutorial651  6 лет назад +1

      Hmm I've never used electron before. Are you sure there's not some good tutorials out there you use like this ?ruclips.net/video/GC3oMVdnmVg/видео.html

    • @mrneverzero9084
      @mrneverzero9084 6 лет назад +1

      thanks .I need data packets and I heard my friend say using electron-packager !!! thank you very much...

    • @reactnativetutorial651
      @reactnativetutorial651  6 лет назад +1

      Welcome Shark Tank! I believe you love me just as much as Mãi Yêu :D

    • @mrneverzero9084
      @mrneverzero9084 6 лет назад

      :D

  • @maiyeutramanh1652
    @maiyeutramanh1652 6 лет назад +1

    Thank you very very very much

    • @reactnativetutorial651
      @reactnativetutorial651  6 лет назад

      Don't fight for my love haha, check out this little video about requestretry, I hope it can be useful in your situation: ruclips.net/video/f9ujVEBX7qU/видео.html

    • @maiyeutramanh1652
      @maiyeutramanh1652 6 лет назад

      thanks