So I'm now going to show you an example in the code how our data structure is going to be for the scraped
data that we're getting.
You don't have to type this out along with me.
It's just to show you an example of exactly how our data is going to look like.
So we have here I can make an example here of an array of objects that we have.
So we have const scraping results.
This is an array.
And then we have one example object here, and this example object has different properties.
So we have different properties for each data we're scraping, such as the title date, it was posted,
the neighborhood and so on.
So we can have the title here as the job title.
So we have entry level software engineer.
Right here and it will look like this.
It's a property with a string here.
And then we're going to have the date it was posted.
So date posted.
Now the date.
We are the date.
Data is going to be a JavaScript date object because we can actually get a more precise date from the
HTML of this page.
I'm going to show you that in a later section.
But for now, just know that we're saving it as a date object.
So it will be a date object, something like a date we have here A with the month and a date and then
also a time it was posted and.
Then we have the neighborhood the posting was on.
So neighborhood.
Here we have Palo Palo Alto.
And.
Then we have the job description URL, which is the URL we get when we click on here.
So it's going to be this one.
I'm just going to copy and paste that.
So your URL.
And then we have the job description.
And that's basically all of the text we have here.
I'm not going to copy and paste that in.
I'm just taking a little snippet here just as an example here.
And then we also have a compensation.
A compensation?
So compensation.
And that's going to be this one.
And I'm missing a comma here.
So there we go.
So that is how our data is going to be looking like.
We are saving this data in MongoDB database in the end where we have an array of these different scraping
results and each scraping result have these different properties.
So now in the next section I'm going to show you how we start out scraping the data from the actual
site.
We are going to start out by getting the titles of each of these jobs, so I'll see you in the next
section.