Skip to content

razisek/brainly-scraper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

package to scrape www.brainly.co.id

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%