KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
brainly-api
★ 15
Open GitHub ↗
Unofficial brainly.com API
Download README (.md)
Explore Similar Repositories
ngx-chessground
:
angular wrapper for https://github.com/lichess-org/chessground
Student-Registration-Crud-Operation
:
This is a Student Registration Crud Operation in php with MySQL Database
bittorrent-python
:
A BitTorrent-like network written in python
svelte-use-click-outside
:
Zero dependency Svelte's action to handle click outside event
CVE-2020-36184
:
CVE-2020-36184 && Jackson-databind RCE
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
brainly-api
?
Download (.md)
# BrainlyAPI 🌩️  [](https://npmjs.com/package/brainly-api) [](https://github.com/dhanuprys/brainly-api) [](https://www.travis-ci.com/github/dhanuprys/brainly-api) [](https://github.com/dhanuprys/brainly-api/actions) [](https://npmjs.com/package/brainly-api) [](https://npmjs.com/package/brainly-api) [](https://github.com/dhanuprys/brainly-api) [](https://circleci.com/gh/dhanuprys/brainly-api) [](https://lerna.js.org/) > Now some commands have been divided into sections and must be installed separately > > Now you can use "find question highlight" to search for the highlighted questions ## Notes ‼️ - This is not the official library from brainly.com - This version is not stable yet - This library is still under development - PLEASE DO NOT USE THIS LIBRARY FOR NEGATIVE PURPOSE ⚠️ ‼️ - What about documentation? The documentation will be generated as soon as some library components are ready to use ## Let's Try with Experimental Mode 😎 ```javascript const { BrainlyAPI, Server } = require('brainly-api'); BrainlyAPI.startWorker({ experimental: true, server: Server.ID }, async brainly => { // find question console.log(await brainly.findQuestion('Indonesian!!')); }); ``` ## List of Available Locations 📍 **Example:** ```javascript const { Server } = require('brainly-api'); Server.{Code} ``` Code | Name | Refers to ---- | ----- | -------- PL | Poland 🇵🇱 | [brainly.pl](https://brainly.pl) RU | Russian Federation (the) | [znanija.com](https://znanija.com) ES | Spain | [brainly.lat](https://brainly.lat) PT | Portugal 🇵🇹 | [brainly.com.br](https://brainly.com.br) TR | Turkey | [eodev.com](https://eodev.com) RO | Romania 🇷🇴 | [brainly.ro](https://brainly.ro) ID | Indonesia 🇮🇩 | [brainly.co.id](https://brainly.co.id) HI | India 🇮🇳 | [brainly.in](https://brainly.in) PH | Philippines (the) 🇵🇭 | [brainly.ph](https://brainly.ph) US | United States of America (the) 🇺🇸 | [brainly.com](https://brainly.com) (deprecated) Source ℹ️ : https://www.iban.com/country-codes ## List of Features 😲 All the features below can only be used anonymously (temporarily disabled in auth mode) 😿. All the available features are still under development and will continue to be improved. Feature | Method | Status ------- | ------ | ------ Find question | findQuestion | ✔️ Find question by id | ❌ | ❌ Find question highlight | findQuestionHighlight | ✔️ Fetch user profile | fetchUserProfile | ✔️ ## Using CLI Tools 💻 ```bash $ npx brainly-api ``` ## Brainly API Tools (@brainly-api-tools) ‼️ Brainly api makes helper tools to simplify the development process. Here is a list of tools that can be used: - [@brainly-api-tools/example-list](https://npmjs.com/package/@brainly-api-tools/example-list) - [@brainly-api-tools/portable-server](https://npmjs.com/package/@brainly-api-tools/portable-server) - If you have other tools, you can contact me to be included in the list ## Enable Random User Agents ❓ The random user agent can be activated by installing the `random-useragent` library. ## API ### AnonymousWorker ##### `AnonymousWorker.findQuestion(question: string)` Used to search for questions based on the server and search queries. ##### `AnonymousWorker.findQuestionById(id: string)` Used to search for questions based on the server and id. ##### `AnonymousWorker.fetchUserProfile(userId: string)` > Under development > ##### `AnonymousWorker.findQuestionHighlight(lesson: number)` Used to search for highlight questions based on the server and lesson type. ## Troubleshooting 😠 ### Deploy to the server Many people say that brainly-api has problems when deploying to Heroku. This was not caused by a flaw in the program, but from the security of the Brainly itself. They use Cloudflare for security. As another experiment, brainly-api works well with Microsoft Azure. If you have any suggestions for deploying brainly-api for free, you can do a pull request. ### US Server restricted anywhere Usually, many people ask why when the test on localhost is running well while on hosting it gives a 403 error. However, in this case, if you use US as the server then it will not work well on local and hosting. This is due to the security of Cloudflare. ## Who Uses it ❓ Currently no project names are displayed. If you want your project name included here, then [contact me](#contact-me-phone) with the following format: - **projectname**: your project name - **projectlink**: your project link - **projectlogo**(optional): your project logo (600x400) or lower ## Contact me ☎️ - <a href="mailto:dhanuprys@gmail.com">Gmail</a> - [Telegram](https://t.me/dhanuprys) - [Twitter](https://twitter.com/dhanuprys) - [Instagram](https://instagram.com/dhanuprys) ## Code of Conduct 👥 See [code of conduct](https://github.com/dhanuprys/brainly-api/blob/main/CODE_OF_CONDUCT.md) ## Support My Other Project 🔗 - [Straight.it](https://github.com/dhanuprys/straight-it) ## Contributing 📝 Thank you for wanting to contribute to this project. The contribution page can be found on [contribution page](https://github.com/dhanuprys/brainly-api/blob/main/CONTRIBUTING.md) ## License 🔓 Licensed under **MIT License** See [package license](https://github.com/dhanuprys/brainly-api/blob/main/LICENSE) ## Thanks for using brainly-api 😉