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.
- Host: GitHub
- URL: https://github.com/fastering18/brainly-wrapper
- Owner: Fastering18
- License: mit
- Created: 2021-03-05T11:17:57.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-03T03:15:15.000Z (about 4 years ago)
- Last Synced: 2025-03-13T18:05:46.992Z (3 months ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)