I am writing a program to scrape IT jobs from my country. Most of the jobs sites were easily getting scraped but there's this one site which I can't figure out. (I am still learning web scraping, so pardon me for my stupidity, this is my hobby project only).
This is the URL
Now if you enable jquery and go to console and do this.
$("#Job_0").text()
You'll get the output as Software Engineer.
I am doing this stuffs in node.js cheerio and depreciated request-promise module.
const request = require("request-promise");
const cheerio = require("cheerio");
async function infinite() {
const result = await request.get(
"https://sjobs.brassring.com/TGNewUI/Search/Home/Home?partnerid=26656&siteid=5008#keyWordSearch=&locationSearch=Nepal"
);
//console.log(result)
const $ = cheerio.load(result);
//console.log($);
console.log($("#Job_0").text());
}
I can get the result printed, I can get the selector $
printed but not the text?
Why?