bhackel / cheggbog

Fully automated Chegg Discord bot for homework help
MIT License
13 stars 3 forks source link

error #5

Closed avtar312 closed 2 years ago

avtar312 commented 2 years ago

file_loc = max(glob.glob(path, recursive=True), key=os.path.getmtime) ValueError: max() arg is an empty sequence

bhackel commented 2 years ago

Yeah this happens when the program doesn't wait long enough for the screenshot to finish. You can increase the delays on lines 44 and 46 as a temporary solution until I get around to fixing it.

avtar312 commented 2 years ago

ok thanku

avtar312 commented 2 years ago

Can u add cookie method for login account

bhackel commented 2 years ago

Probably not, 1 its unreliable, 2 I would have to learn how to implement it, 3 I wouldn't have a use for it, 4 it's pretty much the same as logging in

avtar312 commented 2 years ago

When I put bot on rdp server it only open link and not take screen shot can u help

bhackel commented 2 years ago

The problem could be many things, you can try running the python script as administrator, make sure the screenshot extension is properly installed, make sure chrome is the selected window when the bot is running

avtar312 commented 2 years ago

How to select chrome browser to open link it open on Microsoft browser only. Please help

bhackel commented 2 years ago

You probably need to set the default browser in windows default app settings

avtar312 commented 2 years ago

Thanku so much

avtar312 commented 2 years ago

Can i see your bot server..? Your bot working on server

bhackel commented 2 years ago

What do you want to see about it? I can't just show you the whole thing.

avtar312 commented 2 years ago

Rdo server not allow to take screen shot?

bhackel commented 2 years ago

I have no idea, I'm using a virtual machine for mine

avtar312 commented 2 years ago

I have no idea, I'm using a virtual machine for mine

i think it not work on server, remote server not allow to take screenshot

bhackel commented 2 years ago

Fixed the file not found error in the latest version