Skip to content

Fastering18/brainly-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unoffical Brainly-wrapper

Written in NodeJS, do your homework now! NPM Package

const brainly = require("brainly-wrapper")

brainly.getQuestion("apa itu benar").then(console.log).catch(console.error)

brainly.setServer("US")

brainly.getQuestion("what is true").then(console.log).catch(console.error)

Structure:

{
  "id": "xxx=",
  "databaseId": "Number",
  "author": {
    "id": "xxx",
    "databaseId": "Number",
    "isDeleted": "boolean",
    "nick": "String (Username)",
    "avatar": {
      "thumbnailUrl": "String (URL)",
      "__typename": "Attachment"
    },
    "rank": {
      "name": "String (Rank)",
      "__typename": "Rank"
    },
    "__typename": "User"
  },
  "content": "String (Question)",
  "answers": {
    "nodes": [
      {
        "thanksCount": 1,
        "ratesCount": 1,
        "rating": 5,
        "content": "String (Answer)",
        "__typename": "Answer"
      }
    ],
    "hasVerified": "boolean",
    "__typename": "AnswerConnection"
  },
  "__typename": "Question"
}

Test the package with npm test
Contributions, Issues, visit Github

About

Unoffical brainly wrapper.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published