0.0.2 • Published 7 months ago

node-brainly v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Brainly Api for NodeJs 💚

An api that obtains data from Brainly directly through the API, using NodeJs

Installation

npm i brainly-api

or

npm i https://github.com/LearXD/brainly-api

Usage

const brainly = require("node-brainly");

const brainly = new Brainly({ language: 'pt' })

const search = await brainly.search('Who discovered Brazil?')
const answers = await brainly.getQuestionById(search.results[0].question.id)

console.log(`Answer 1: ${answers.data.questionById.answers.nodes[0]?.content}`)
console.log(`Answer 2: ${answers.data.questionById.answers.nodes[1]?.content}`)

Support

Be free to submit PRs and Issues if necessary

Author

0.0.2

7 months ago

0.0.1

7 months ago