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

https://github.com/fastering18/brainly-wrapper

Unoffical brainly wrapper.
https://github.com/fastering18/brainly-wrapper

Last synced: 3 months ago
JSON representation

Unoffical brainly wrapper.

Awesome Lists containing this project

README

        

# Unoffical Brainly-wrapper
Written in NodeJS, do your homework now!
[NPM Package](https://www.npmjs.com/package/brainly-wrapper)

```js
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:
```json
{
"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](https://github.com/Fastering18/brainly-wrapper)