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.
On this page of the site you can watch the video online Imgur Web Scraping + Callback vs Promise Example in Node.js with a duration of hours minute second in good quality, which was uploaded by the user JsWiz 15 April 2017, share the link with friends and acquaintances, this video has already been watched 7,707 times on youtube and it was liked by 114 viewers. Enjoy your viewing!