I am scraping linkedin's job section with cheerio, for example the following link:
If I browse the link using chrome it splits the jobs by pages, but when I browse this in Microsoft Edge (I would like you to try also just to see), it loads more jobs just if I scroll down to the bottom of the page. My assumption is that cheerio is using Microsoft Edge behind the scenes but I am not sure about it and I don't know how to change it and if it's even a good idea.
I would like to ask what are my options in this situation when I try to scrape all of the jobs, also those who are dynamically rendered or those who are in another page.
The code that gives me what I currently have is:
const LINKEDIN_JOBS_OBJ = await axios.get(
'https://www.linkedin.com/jobs/search/........');
const $ = cheerio.load(LINKEDIN_JOBS_OBJ.data);
const listItems = $('li div a');
listItems.each(function(idx, el) {
jobsArr.push($(el).text().replace(/\n/g, '').replace(/\s\s+/g, ' '));
});
Which gives me only the jobs in first page / first section.