Okay, let's write our first index.js file.
So.
And then we will import the puppeteer
using require.
And.
Cheerio.
Right
now, the first page we are going to go into is this one.
And let's see how it looks like.
Looks like this.
Actually, if we go down to number two here, then there should be some kind of offset.
Yeah.
So you can see there's an offset here.
So that means there's 18 homes shown on each page.
On each page.
So if we write 36 instead, we go to basically page three instead.
So.
Yeah, you can see we're on page three now.
So the idea is that we go to this URL here and we just bump it up by 18 each time each cycle we go through.
So let's say this as a comment right here and then I want to define exactly what we are going to scrape.
So I'm going to just make a sample here and we're going to get I know I said it before, but I just
want to make it clear how the object is going to look like.
So we have a guest, for example, has a number one, we have a bedrooms, has a one.
Um.
Betts also has the number one and a bass.
We have one now.
In this case it has a shared bath.
Also this one.
Some of them just have bathrooms.
But we're just going to keep it simple for now and just have it as bath.
So then we have the price.
In this case, it's in my local currency where I'm at.
So it's crowns, it's crowns, kroner, maybe it's USD or or Japanese yen where you are, I don't know.
But for me it's kroner right now, so I will call it kroner per night.
And in this case, it's 350.
Okay, so that's what we are going to scrape from each of these rooms or homes in here.
Okay.
In the next section, we are going to go into this page load it into puppeteer and get all of the URLs
we see on this page here.