So let's see how we can develop a scraper without actually making a request on the site all of the time,
hence lowering the amount of demands we make on the site and lowering the risk of getting banned on
a site if we're trying to make a scraper for it.
So I'm going to make a directory here.
Let's call it CD scraper, and then I'm going to go inside the directory and initialize NPM.
NPM init.
Dash.
Yes.
Then I'm going to open it up inside of Visual studio code.
First, let's go ahead and import the packages that we need for this project.
So go inside the terminal and in here I will add Cheerio request and request promise.
And then we're going to add a new package that you haven't seen before, which is called chest and chest
is a test runner or a test framework that is built by Facebook, just like Facebook has built React
for the Facebook app.
And they also have built a chest testing framework for JavaScript and it's usually associated with React,
but you can also use it as they write here for Node Angular and Vue.
So it's basically going to run our test and deliver a testing framework that we can write test in.