Deftera186 / cleverbotfreeapi

Simple unofficial package to interact with the same API that the Cleverbot website uses for free. This package is inspired from the package that was written in node.js: https://www.npmjs.com/package/cleverbot-free
MIT License
10 stars 2 forks source link

KeyError : 'CBOUTPUT' #1

Closed Laezor closed 3 years ago

Laezor commented 3 years ago

seems like that header doesn't exist anymore.

response = requests.utils.unquote(req.headers["CBOUTPUT"])

I changed that line to this

getresponse = re.split(r'\\r',str(req.content))[0]
response = getresponse[2:-1]