superboum / cleverbot Goto Github PK
View Code? Open in Web Editor NEWA python3 binding of cleverbot wich support special characters
A python3 binding of cleverbot wich support special characters
Hey Quentin, this is a really neat library. Thanks for making it.
I'm having an issue testing your library. I run this, like you mention on the readme page:
import cleverbot
myBot = cleverbot.Session()
answer = myBot.Ask("Hello there")
print(answer)
But when I try to run myBot.Ask("Hello there'), I get 404 errors. Here's the full output:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/roman/github/Introduction-to-Programming-with-Python/mid-term/cleverbot.py", line 41, in Ask
asw=self.Send()
File "/home/roman/github/Introduction-to-Programming-with-Python/mid-term/cleverbot.py", line 34, in Send
with urllib.request.urlopen(req,None,5000) as url:
File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.5/urllib/request.py", line 472, in open
response = meth(req, response)
File "/usr/lib/python3.5/urllib/request.py", line 582, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.5/urllib/request.py", line 510, in error
return self._call_chain(*args)
File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
result = func(*args)
File "/usr/lib/python3.5/urllib/request.py", line 590, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
Thanks,
Roman
Recently this broke, asking the bot something now throws a 404 error:
>>> cleverbot.Session().Ask("hello there")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/s0lll0s/documents/stuff/htll/cleverbot.py", line 54, in Ask
asw=self.Send()
File "/home/s0lll0s/documents/stuff/htll/cleverbot.py", line 47, in Send
with urllib.request.urlopen("http://www.cleverbot.com/webservicemin",binary_data,5000) as url:
File "/usr/lib/python3.4/urllib/request.py", line 161, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.4/urllib/request.py", line 469, in open
response = meth(req, response)
File "/usr/lib/python3.4/urllib/request.py", line 579, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.4/urllib/request.py", line 507, in error
return self._call_chain(*args)
File "/usr/lib/python3.4/urllib/request.py", line 441, in _call_chain
result = func(*args)
File "/usr/lib/python3.4/urllib/request.py", line 587, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
Could we get a fix for that by any chance?
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.