Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kagchi/brainly


https://github.com/kagchi/brainly

Last synced: 9 days ago
JSON representation

Awesome Lists containing this project

README

        

# BrainlyScrapper
Package to scrape ```www.brainly.co.id```

## Install
```
npm install @defrindr/[email protected]
```
or
```
npm i brainly-scraper
```

## Example
```
const brainly = require('./brainly.js');

brainly("nkri").then(res => {
console.log(res);
})
```
Output :
```
[
{
pertanyaan: 'pengertian NKRI, tujuan NKRI, unsur NKRI, dan fungsi NKRI',
jawaban: [ [Object] ],
questionMedia: []
},
{
pertanyaan: 'NKRI adalah \n\n NKRI adalah',
jawaban: [ [Object] ],
questionMedia: []
},
{
pertanyaan: 'NKRI NKRI diperoleh melalui... ',
jawaban: [ [Object] ],
questionMedia: []
},
{
pertanyaan: 'Apa yang dimaksud dengan NKRI ? (NKRI adalah...)',
jawaban: [ [Object] ],
questionMedia: []
},
{
pertanyaan: 'Apa yang dimaksud dengan NKRI ? (NKRI adalah...)',
jawaban: [ [Object], [Object] ],
questionMedia: []
}
]
```
Tips :
You can use JSON.stringify() to get string output

## Contribution
Contributions are welcome.