Skip to content

v2.0.12

Latest
Compare
Choose a tag to compare
@hansputera hansputera released this 05 May 13:21

Changelogs

  1. Fixed blank results using the Brainly.searchWithMT method (#16 (comment))
  2. Change the parameters "Brainly.search", and "Brainly.searchWithMT" to (question, language, length, options)
    Example:
// If you want customize the request options.
brainly.search('Pythagoras', 'id', 10, {
  'headers': {
   'User-Agent': 'Your User Agent Request'
  }
});

// How about if you want use others language?
brainly.search('Pythagoras', 'es');

// Or, (default language: id)
brainly.search('Pythagoras');
  1. Increased search speed. Because, we store the search results in the cache file. And, if you use the Brainly.searchWithMT method, you do not need to enter the country code correctly in the constructor, because this method will make requests to all Brainly sites in the same language.

Links

Full Changelog: https://github.com/hansputera/brainly-scraper-languages/commits/v2.0.12
NPM: https://npmjs.com/package/brainly-scraper-v2