GithubHelp home page GithubHelp logo

ammeysaini / chegg-answer-bot Goto Github PK

View Code? Open in Web Editor NEW
51.0 5.0 29.0 6 KB

You can share your Chegg account for answers using this bot with your friends without getting your account blocked/flagged

License: MIT License

Python 100.00%
chegg-bot chegg chegg-answers chegg-api telegram-bot chegg-unblur

chegg-answer-bot's Introduction

Chegg-Answer-Bot

You can share your Chegg account for answers using this bot with your friends without getting your account blocked/flagged

Reuirements:

  • Python 3,6 or >
  • Python module requests
  • Python module pytelegrambotapi
  • Some brain

Setup:

  • You will be needing a Chegg account with subscription.
  • You need to open setup.py and insert your email and password in the code (hinted in code)
  • After editing the code you need to run setup.py using python3 setup.py it'll ask you for 2FA (if required)
  • Follow all the instructions during the execution and once you see "Setup Completed" it means you are done.
  • Now you need yo create a telegram bot and paste it's token into bot.py.
  • And finally run python3 bot.py and you are good to go!!.

Note: It's recommended not use any kind of VPN to save your account getting blocked/flagged

Features:

  • Login Supported
  • 2FA Supported
  • Will send all the answers available with the Labels over every questions.
  • You will discover more :)

chegg-answer-bot's People

Contributors

ammeysaini avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

chegg-answer-bot's Issues

list index out of range

I've debug the program and found this

Traceback (most recent call last):
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/pudb/init.py", line 152, in runscript
dbg._runscript(mainpyfile)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/pudb/debugger.py", line 500, in _runscript
self.run(statement)
File "/usr/lib/python3.8/bdb.py", line 580, in run
exec(cmd, globals, locals)
File "", line 1, in
File "helper.py", line 8, in
from bs4 import BeautifulSoup
ModuleNotFoundError: No module named 'bs4'

Here is the code line 152
image

This is my main.py file
image

Not working

Showing Recaptcha page every time when trying to get an answer.

100% working

This bot is working 100% fine till todays date 27/05/2022. Huge thanks to the author. Yes there is room for improvement. If can body needs help to install on telegram, contact me on Harry | Ballies - 2229#1763

ERROR

it says ( list index out of range ) for the caption, and stat is FALSE

403 Forbidden ERROR

On login, it gives a 403 error. That's why JSON can decode the response from post request.

<Response [403]>
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

captcha issue

Thank you for this project!

It is very helpful but from yesterday, it returns captcha issue like below.
And Can i have a solution for it?

`

<title>Access to this page has been denied.</title> <style> html, body { margin: 0; padding: 0; font-family: 'Open Sans', sans-serif; color: #000; }
    a {
        color: #c5c5c5;
        text-decoration: none;
    }

    .container {
        align-items: center;
        display: flex;
        flex: 1;
        justify-content: space-between;
        flex-direction: column;
        height: 100%;
    }

    .container > div {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .container > div > div {
        display: flex;
        width: 80%;
    }

    .customer-logo-wrapper {
        padding-top: 2rem;
        flex-grow: 0;
        background-color: #fff;
        visibility: hidden;
    }

    .customer-logo {
        border-bottom: 1px solid #000;
    }

    .customer-logo > img {
        padding-bottom: 1rem;
        max-height: 50px;
        max-width: 100%;
    }

    .page-title-wrapper {
        flex-grow: 2;
    }

    .page-title {
        flex-direction: column-reverse;
    }

    .content-wrapper {
        flex-grow: 5;
    }

    .content {
        flex-direction: column;
    }

    .page-footer-wrapper {
        align-items: center;
        flex-grow: 0.2;
        background-color: #000;
        color: #c5c5c5;
        font-size: 70%;
    }

    @media (min-width: 768px) {
        html, body {
            height: 100%;
        }
    }
</style>
<!-- Custom CSS -->
Logo

Please verify you are a human

        <div id="px-captcha">
        </div>
        <p>
            Access to this page has been denied because we believe you are using automation tools to browse the
            website.
        </p>
        <p>
            This may happen as a result of the following:
        </p>
        <ul>
            <li>
                Javascript is disabled or blocked by an extension (ad blockers for example)
            </li>
            <li>
                Your browser does not support cookies
            </li>
        </ul>
        <p>
            Please make sure that Javascript and cookies are enabled on your browser and that you are not blocking
            them from loading.
        </p>
        <p>
            Reference ID: #e9f57454-2ce7-11ec-829c-45416b765673
        </p>
    </div>
</div>
<div class="page-footer-wrapper">
    <div class="page-footer">
        <p>
            Powered by
            <a href="https://www.perimeterx.com/whywasiblocked">PerimeterX</a>
            , Inc.
        </p>
    </div>
</div>
<script> window._pxAppId = 'PXzYvFOXaC'; window._pxJsClientSrc = '/zYvFOXaC/init.js'; window._pxFirstPartyEnabled = true; window._pxVid = ''; window._pxUuid = 'e9f57454-2ce7-11ec-829c-45416b765673'; window._pxHostUrl = '/zYvFOXaC/xhr'; </script> <script> var s = document.createElement('script'); s.src = '/zYvFOXaC/captcha/captcha.js?a=c&u=e9f57454-2ce7-11ec-829c-45416b765673&v=&m=0'; var p = document.getElementsByTagName('head')[0]; p.insertBefore(s, null); if (true) { s.onerror = function () {`

Enter Channel id to continue

So when run the setup.py it ask for

"Enter Channel id to continue" but you didn't mention what is the Channel id

can you tell me that

PAID SERVICE

Hi Saini, how much to add chegg bot to my server? Thanks.

ERROR

Traceback (most recent call last):
File "C:\Users\varun\Desktop\java\Chegg-Answer-Bot-main\setup.py",
File "C:\Users\varun\Desktop\java\Chegg-Answer-Bot-main\helper.py", line 237, in tryLogin
js = res.json()
File "C:\Users\varun\Desktop\java\Chegg-Answer-Bot-main\venv\lib\site-packages\requests\models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1776.0_x64__qbz5n2kfra8p0\lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1776.0_x64__qbz5n2kfra8p0\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1776.0_x64__qbz5n2kfra8p0\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Plz fix it @AmmeySaini

Error Occur

Can someone help me to run the program/Project?

Getting error while setting it up.

File "/Users/sudarshan/Desktop/Chegg-Answer-Bot-main/helper.py", line 45, in try2FA
f_id = factors[idd - 1]['id']
IndexError: list index out of range

Command

What is the command for pasting link in bot or directly we can paste and which python compiler i have to use is pycharm compiler is okay for that

working hurray ๐Ÿ˜โค

image
image
After two days of continues debugging and research i was able to update the code and run the bot successfully
Try to debug
research a bit what has been changed on chegg

Can't find the textbook solution.

For example, the link is Chapter 3, question 15.
The bot always return Chapter 3, question 1.
I found out that the reason is bot found the 1st question id in every link. I tried to solve it by re-find the correct question id, but unfortunately the page denied me to access the answer page. It returns unauthorized.
Thank you!

list index out of range

I am running the code in command prompt. I am getting error 'IndexError :list index out of range' Can anyone help.

Full process?

Can anyone please send me the full process of the chegg answer bot

list index out of range

I've debug the program and found this

Traceback (most recent call last):
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/pudb/init.py", line 152, in runscript
dbg._runscript(mainpyfile)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/pudb/debugger.py", line 500, in _runscript
self.run(statement)
File "/usr/lib/python3.8/bdb.py", line 580, in run
exec(cmd, globals, locals)
File "", line 1, in
File "helper.py", line 8, in
from bs4 import BeautifulSoup
ModuleNotFoundError: No module named 'bs4'

Here is the code line 152
image

This is my main.py file
image

Not Working

image

Anyone one help me with this message me in discord plz riyazkhan1432021#7051

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.