Git Product home page Git Product logo

brainly-scraper-v2's Introduction

brainly-scraper-languages

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
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
[
  {
    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

⚙️ Issues and Bugs

If you have problems using this library, you can create an issue in the github repository. 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 then install dependencies to your directory. Happy coding 😁

brainly-scraper-v2's People

Contributors

hansputera avatar renovate-bot avatar renovate[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.