https://github.com/hansputera/brainly-scraper-languages
Libraries that make searching on sites brainly easy.
https://github.com/hansputera/brainly-scraper-languages
brainly brainly-scraper brainlyapi hacktoberfest scraper
Last synced: 11 months ago
JSON representation
Libraries that make searching on sites brainly easy.
- Host: GitHub
- URL: https://github.com/hansputera/brainly-scraper-languages
- Owner: hansputera
- License: mit
- Created: 2020-09-30T11:33:13.000Z (over 5 years ago)
- Default Branch: develop
- Last Pushed: 2025-02-04T00:49:50.000Z (over 1 year ago)
- Last Synced: 2025-03-28T04:51:12.337Z (about 1 year ago)
- Topics: brainly, brainly-scraper, brainlyapi, hacktoberfest, scraper
- Language: TypeScript
- Homepage: https://hansputera.github.io/brainly-scraper-languages/
- Size: 336 KB
- Stars: 18
- Watchers: 2
- Forks: 9
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

This library retrieves data from Brainly that has been designed to avoid `403 Forbidden` exception.
> To avoid such errors, you can fill in a valid country code. You can test the 10 languages or country codes available to see if your server hosting country location or location is rejected.
See https://github.com/hansputera/brainly-scraper-languages/blob/master/AVAILABLE_LANGUAGES.md
# 💉 Installation
- Using NPM : `npm install brainly-scraper-v2`
- Using YARN : `yarn add brainly-scraper-v2`
# 📜 How to use
> WARNING: Make sure the country code you entered in the constructor is correct.
- Code
```js
const { Brainly } = require("brainly-scraper-v2");
const brain = new Brainly("id"); // 'id' - Default to 'id'
// You can do
brain.searchWithMT("Pythagoras", "es").then(console.log).catch(console.error);
// Or (You need to enter correctly country code in the constructor).
brain.search("Pythagoras", "es").then(console.log).catch(console.error);
```
- Output
```json
[
{
question: {
id: 5070014,
content: 'Pythagoras nació en el año 580 a.c y murió en el año 501. ¿Que edad tenia Pythagoras Cúando murió?',
closed: true,
created: [Object],
attachments: [],
author: [Object],
education: 'matematicas',
education_level: undefined,
canBeAnswered: true,
points_answer: [Object],
points_question: 10,
grade: 'Secundaria',
lastActivity: '2020-09-22T00:22:19.000Z',
verifiedAnswer: true
},
answers: [ [Object] ]
}, { ... }
]
```
# ⏱ Changelogs
You can check the changelogs on the [GitHub Releases Page](https://github.com/hansputera/brainly-scraper-languages/releases)
# ⚙️ Issues and Bugs
If you have problems using this library, you can create an issue in the [github repository](https://github.com/hansputera/brainly-scraper-languages). Remember, don't forget to read the instructions and try.
# ✍️ Contributions
Do you want to contribute with this library for the better? Very well, fork this [github repository](https://github.com/hansputera/brainly-scraper-languages) then install dependencies to your directory. Happy coding 😁