AmmeySaini / Chegg-Answer-Bot

You can share your Chegg account for answers using this bot with your friends without getting your account blocked/flagged
MIT License
49 stars 28 forks source link

403 Forbidden ERROR #12

Closed Rohitjoshi07 closed 3 years ago

Rohitjoshi07 commented 3 years ago

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)

riyazkhan1432021 commented 3 years ago

For me also same

devilevil100 commented 3 years ago
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Access to this page has been denied.</title>
    <link href="https://fonts.googleapis.com/css?family=Open+Sans:300" rel="stylesheet">
    <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: visible;
        }

        .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 -->

</head>

<body>
<section class="container">
    <div class="customer-logo-wrapper">
        <div class="customer-logo">
            <img src="https://chegg-mobile-promotions.cheggcdn.com/px/Chegg-logo-79X22.png" alt="Logo"/>
        </div>
    </div>
    <div class="page-title-wrapper">
        <div class="page-title">
            <h1>Please verify you are a human</h1>
        </div>
    </div>
    <div class="content-wrapper">
        <div class="content">

            <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: #ac6bae30-e3a1-11eb-92f5-79898a504c59
            </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>
</section>
<!-- Px -->
<script>
    window._pxAppId = 'PXaOtQIWNf';
    window._pxJsClientSrc = '/aOtQIWNf/init.js';
    window._pxFirstPartyEnabled = true;
    window._pxVid = '';
    window._pxUuid = 'ac6bae30-e3a1-11eb-92f5-79898a504c59';
    window._pxHostUrl = '/aOtQIWNf/xhr';
</script>
<script>
    var s = document.createElement('script');
    s.src = '/aOtQIWNf/captcha/captcha.js?a=b&u=ac6bae30-e3a1-11eb-92f5-79898a504c59&v=&m=0';
    var p = document.getElementsByTagName('head')[0];
    p.insertBefore(s, null);
    if (true) {
        s.onerror = function () {
            s = document.createElement('script');
            var suffixIndex = '/aOtQIWNf/captcha/captcha.js?a=b&u=ac6bae30-e3a1-11eb-92f5-79898a504c59&v=&m=0'.indexOf('captcha.js');
            var temperedBlockScript = '/aOtQIWNf/captcha/captcha.js?a=b&u=ac6bae30-e3a1-11eb-92f5-79898a504c59&v=&m=0'.substring(suffixIndex);
            s.src = '//captcha.px-cdn.net/PXaOtQIWNf/' + temperedBlockScript;
            p.parentNode.insertBefore(s, p);
        };
    }
</script>

<!-- Custom Script -->

</body>
</html>
devilevil100 commented 3 years ago

captcha issue perimeterx

Rohitjoshi07 commented 3 years ago

@AmmeySaini please look into this matter. There may be some issues with webheads or authorization tokens. Everyone is getting the same error.

devilevil100 commented 3 years ago

@AmmeySaini please look

devilevil100 commented 3 years ago

why did you close the error

Rohitjoshi07 commented 3 years ago

@devilevil100 you got that error because Chegg blocked you temporarily for making excessive requests, please wait for 24hrs it will resolve, and my error was solved now so that's why I closed this issue.

devilevil100 commented 3 years ago

thanks man

devilevil100 commented 3 years ago

@Rohitjoshi07 do you know how much requests per day is okay?

Rohitjoshi07 commented 3 years ago

@devilevil100 per day has no limit. but try to give 10-20 second random delay in each query to the Chegg answer scrapping.

abhinav-supersonic commented 2 years ago

Hey can anyone help me to settup the bot ?