https://github.com/fzrilsh/stackoverflow-scrape
Query a question and find the answer on stackoverflow
https://github.com/fzrilsh/stackoverflow-scrape
javascript scrape-stackoverflow scraper stackoverflow stackoverflow-api stackoverflow-questions
Last synced: 26 days ago
JSON representation
Query a question and find the answer on stackoverflow
- Host: GitHub
- URL: https://github.com/fzrilsh/stackoverflow-scrape
- Owner: fzrilsh
- License: mit
- Created: 2023-01-14T10:42:53.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-17T16:58:12.000Z (almost 3 years ago)
- Last Synced: 2025-10-01T15:28:33.353Z (5 months ago)
- Topics: javascript, scrape-stackoverflow, scraper, stackoverflow, stackoverflow-api, stackoverflow-questions
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# stackoverflow-scrape
Query a question and find the answer on stackoverflow
## Table of Contents
- [stackoverflow-scrape](#stackoverflow-scrape)
- [Table of Contents](#table-of-contents)
- [Usage](#usage)
- [For Node.js](#for-nodejs)
- [WARNING](#warning)
- [Todo](#todo)
## Usage
#### For Node.js
Install using:
```shell
npm install stackoverflow-scrape --save
```
### WARNING
this module require nodejs ver ^18.11.0
```javascript
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