Learn advanced scraping: https://goo.gl/QEo1ie
Repo: https://github.com/jakblak/nodeJS_exa...
check imgur_scraping folder
In this video we're going to do a cheerio + request example and scrape the website Imgur. This will also include an example of how to turn a callback into a promise.
Here you will learn how to use the request module and pass in a url to gather the contents of the web page. Then we can use cheerio module to parse the body and extract the elements we want. Then we'll use that data to display the output in our console.
The contents of our scraper will be held in a separate file and then imported into our main app.js file. We'll access the JSON output using a callback. Then we'll refactor this code to show how we can use native Promises to perform the same task.
Auf dieser Seite können Sie das Online-Video Imgur Web Scraping + Callback vs Promise Example in Node.js mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer JsWiz 15 April 2017 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 7,707 Mal angesehen und es wurde von 114 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!