Skip to content

fzrilsh/stackoverflow-scrape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stackoverflow-scrape

Query a question and find the answer on stackoverflow

Table of Contents

Usage

For Node.js

Install using:

npm install stackoverflow-scrape --save

WARNING

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)
})()

Todo

  • Make Array for Multiple Question and Answer