HTML response : Get data inside script tag

@sonutitus Cheerio would be a good option here:

I saw a similar post here. Kindly go though this to know more about cheerio :slight_smile:

You can try the below snippet,

I just worked roughly since only the snapshot of the response in provided.

const $ = cheerio.load(responseBody);
//console.log($.html());

console.log($("script[windowRequestVerficationToken]").val());
1 Like