Changelogs
- Fixed blank results using the
Brainly.searchWithMT
method (#16 (comment)) - 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');
- 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