ammeysaini / chegg-answer-bot Goto Github PK
View Code? Open in Web Editor NEWYou can share your Chegg account for answers using this bot with your friends without getting your account blocked/flagged
License: MIT License
You can share your Chegg account for answers using this bot with your friends without getting your account blocked/flagged
License: MIT License
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'
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!
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
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'
I am running the code in command prompt. I am getting error 'IndexError :list index out of range' Can anyone help.
Can someone help me to run the program/Project?
old answer images are not fetching and also new answers likes and dislikes are not showing in res(json) data
Now, every API used in this code gets a PerimeterX captcha. @AmmeySaini can you tell how you get those mobile app headers that are SSL protected.
Traceback (most recent call last):
File "E:\cc\c\bot.py", line 14, in
acc = CheggAccount(setup['CheggEmail'], setup['CheggPassword'])
File "E:\cc\c\chegg.py", line 11, in init
if (self.login(username, password) == False):
File "E:\cc\c\chegg.py", line 78, in login
if j['mfaChallengeDetails'] != None:
KeyError: 'mfaChallengeDetails'
when trying to run setup.py with my login and password i get this error. what could be the problem?
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
it says ( list index out of range ) for the caption, and stat is FALSE
While fetching the answers, sometimes Chegg redirects to Recaptcha verification. This will leads to script failure. Please help with this issue.
I have limited the request to be sent out with a delay of 40 seconds. But still, suspended every few hours.
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
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
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 -->
<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>
what is channel id?
I ran setup.py and successfully completed it but I am still only receiving this message.
Hi Saini, how much to add chegg bot to my server? Thanks.
there is an issue in Log_url which return 403 ERR.
Thank you.
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
@AmmeySaini what is the error can u tell
Can anyone please send me the full process of the chegg answer bot
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)
Showing Recaptcha page every time when trying to get an answer.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.