Query a question and find the answer on stackoverflow
Install using:
npm install stackoverflow-scrape --save
this module require nodejs ver ^18.11.0
var stackoverflow = require("stackoverflow-scrape");
(async() => {
const fetchForum = await stackoverflow("scraping with jsdom")
// Or You can use Stackoverflow Link
// With the url can speed up getting answers
const fetchForum = await stackoverflow("https://stackoverflow.com/questions/25445936/node-js-web-scraping-with-jsdom")
console.log(fetchForum)
})()
- Make Array for Multiple Question and Answer