cinderdarling / pycleverbot

Automatically exported from code.google.com/p/pycleverbot
0 stars 0 forks source link

Returns blank strings #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Initiate a chat
2. Blank string is returned

What is the expected output? What do you see instead?
Expected output is the response

What version of the product are you using? On what operating system?
Latest version on CentOS 6

Please provide any additional information below.
I think the cleverbot site must have changed so this method no longer works or 
needs tweaking.

Original issue reported on code.google.com by krist...@evercreststudios.com on 2 Sep 2013 at 5:06

GoogleCodeExporter commented 8 years ago
Looks like the server is returning "DENIED" to all requests. I tried matching 
the headers that the browser sends item for item to try and mask the "bot" 
aspect, but I'm unable to get anything other than the denied response. 

Maybe they're cracking down on bot access since they now have an app..? 

Original comment by cki...@gmail.com on 18 Sep 2013 at 11:37

GoogleCodeExporter commented 8 years ago
Change:
digest_txt=data[9:29]
to:
digest_txt=data[9:35]

This fixed my DENIED problems

Original comment by Hollings...@gmail.com on 9 Jun 2014 at 10:59