Coder Social home page Coder Social logo

hansputera / brainly-scraper-languages Goto Github PK

View Code? Open in Web Editor NEW
17.0 1.0 8.0 344 KB

Libraries that make searching on sites brainly easy.

Home Page: https://hansputera.github.io/brainly-scraper-languages/

License: MIT License

TypeScript 99.80% Shell 0.20%
brainly-scraper brainly brainlyapi scraper hacktoberfest

brainly-scraper-languages's Introduction

Hello there ๐Ÿ‘‹

Let me introduce myself. My name is "Hanif Dwy Putra S", you can call me "Hanif". I'm 17 years old. And, I'm from Central Sulawesi, Palu, Indonesia. I love web scraping (I think), and creating bugs ๐Ÿ›

Projects ๐ŸŒŸ

Statistics ๐Ÿ”ฅ

hansputera

ย hansputera

ย hansputera


Thank you for reading, have a nice day ๐Ÿ‘

brainly-scraper-languages's People

Contributors

hansputera avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

brainly-scraper-languages's Issues

TypeError: Brainly is not a constructor

new Brainly

TypeError: Brainly is not a constructor
    at eval (eval at <anonymous> (/root/frmwaapi/index.js:371:17), <anonymous>:2:15)
    at eval (eval at <anonymous> (/root/frmwaapi/index.js:371:17), <anonymous>:4:43)
    at EventEmitter.<anonymous> (/root/frmwaapi/index.js:371:17)
    at EventEmitter.emit (events.js:412:35)
    at WebSocket.<anonymous> (/root/frmwaapi/node_modules/@adiwajshing/baileys-md/lib/Socket/messages-recv.js:389:16)

[Bug] 403 Forbidden Request

Error 403, semua kode bahasa sudah dicoba dan tetap menghasilkan error 403.

BrainlyError: HTTPError: Response code 403 (Forbidden) at Brainly.<anonymous> (pg/node_modules/brainly-scraper-v2/src/main.js:71:23) at Generator.throw (<anonymous>) at rejected (pg/node_modules/brainly-scraper-v2/src/main.js:6:65) at processTicksAndRejections (node:internal/process/task_queues:96:5)

Error

bang ini gmn ada eror

node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^
[AggregateError: All promises were rejected]
Node.js v17.1.0

vps ny di amerika jadi gua set ke us, pake conto ny di readme g bisa

const { Brainly } = require("brainly-scraper-v2");
const brain = new Brainly("us");
 
brain.searchWithMT("Pythagoras", "id").then(console.log).catch(console.error);

kalo pake yg search cuma eror 403

There somthing wrong

Screenshot_2022-02-21-18-15-38-347_com whatsapp

Here my script
case 'brainly':{
if (isLimit(senderNumber, isPremium, isOwner, limitCount, user)) return reply (Limit kamu sudah habis silahkan kirim ${prefix}limit untuk mengecek limit)
if (!q) setReply( 'Soalnya?')
nana =https://www.logosvgpng.com/wp-content/uploads/2018/04/brainly-logo-vector.png
foto = await getBuffer(nana)
let res = await brainly.search('id', ${q})
teks =_*BRAINLY*_\n\n
//let toks = res.map((v, i) => ${v.question.content}\n${e.answers.map((v,i) => JAWABAN KE ${i + 1}\n${v}\n)}\n\nโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•\n\n)\nJurusan: ${e.question.education}
//teks +=${toks}

res.map(function(e, i){
teks +=_*PERTANYAAN KE ${i + 1}*_\n${e.question.content}\n${e.answers.map((v,i) => JAWABAN KE ${i + 1}\n${v}\n)}\n\nโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•\n\n
});

teks +=_Thanks for choosing Brainly_

let mok = [{"buttonId": Thanks,"buttonText": {"displayText": แด›สœแด€ษดแด‹s},"type": "RESPONSE"},
{"buttonId": ${prefix}donasi,"buttonText": {"displayText": แด…แดษดแด€sษช},"type": "RESPONSE"}]
sendButLocation(from, teks, ยฉ ${fake1}, foto, mok, {contextInfo: forward})
limitAdd(senderNumber, user)
}
break

Beberapa penambahan info

bisa di tambah info ny seperti
ratesCount thanksCount isBest
Itu akan sangat berguna menurut saya

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • fix(deps): update dependency axios to ^0.28.0
  • chore(deps): update dependency @types/node to v20
  • chore(deps): update dependency eslint to v9
  • chore(deps): update dependency eslint-config-prettier to v9
  • chore(deps): update dependency husky to v9
  • chore(deps): update dependency prettier to v3
  • chore(deps): update dependency rimraf to v5
  • chore(deps): update dependency typedoc-plugin-extras to v3
  • chore(deps): update dependency typescript to v5
  • chore(deps): update typescript-eslint monorepo to v7 (major) (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • chore(deps): update yarn to v4
  • fix(deps): update dependency piscina to v4
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • axios ^0.27.2
  • piscina ^3.2.0
  • @types/node 16.11.42
  • @typescript-eslint/eslint-plugin 5.30.6
  • @typescript-eslint/parser 5.30.6
  • eslint 8.19.0
  • eslint-config-google 0.14.0
  • eslint-config-prettier 8.5.0
  • husky 8.0.1
  • prettier 2.7.1
  • rimraf 3.0.2
  • typedoc-plugin-extras 2.2.3
  • typescript 4.7.4
  • node >=12.x
  • yarn 3.2.2

  • Check this box to trigger a request for Renovate to run again on this repository

INVALID LANGUAGE

Tiba tiba error bang

Scrip:
case 'brainly':{
const { Brainly } = require("brainly-scraper-v2");
const brainly = new Brainly("id");
if (!q) setReply( 'Soalnya?')
let nana =https://www.logosvgpng.com/wp-content/uploads/2018/04/brainly-logo-vector.png
let foto = await getBuffer(nana)
/*
try{
var res = await brainly.search('id', q)
} catch (err) {
var res = await brainly.searchWithMT('id', ${q})
}
*/
let res = await brainly.searchWithMT('id', ${q})
console.log(res)
let teks =_*BRAINLY*_\n\n

teks += res.map(({ question, answers }, i) => _*PERTANYAAN KE ${i + 1}*_ ${question.content}${answers.map((v, i) =>

JAWABAN KE ${i + 1}${v.verification ? ' (Verified)' : ''}${v.isBest ? ' (Terpilih)' : ''}
${v.content}).join``}).join(โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•)

teks +=\n\n_Thanks for choosing Brainly_

let mok = [{"buttonId": Thanks,"buttonText": {"displayText": แด›สœแด€ษดแด‹s},"type": "RESPONSE"},
{"buttonId": ${prefix}donasi,"buttonText": {"displayText": แด…แดษดแด€sษช},"type": "RESPONSE"}]
xdev.sendButImage(from, teks, ยฉ ${fake1}, foto, mok, {contextInfo: forward})

}
break
Screenshot_2022-06-13-18-14-37-605_com android chrome

Error with status code 403 running on heroku

IMG_20220223_061745

Gimana nih bwang kok error
Script :

const { Brainly } = require("brainly-scraper-v2");
const brainly = new Brainly("id");

case 'kuy':
await brainly.search('id', "Pythagoras").then(console.log).catch(console.error);
break

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.