Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kagchi/brainly
https://github.com/kagchi/brainly
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kagchi/brainly
- Owner: KagChi
- License: mit
- Created: 2020-07-01T02:07:12.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-09T11:09:37.000Z (4 months ago)
- Last Synced: 2024-10-11T00:54:33.038Z (26 days ago)
- Language: JavaScript
- Size: 77.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.