Code Monkey home page Code Monkey logo

cleverbot's People

Contributors

evandotpro avatar srogozins avatar superboum avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cleverbot's Issues

urllib.error.HTTPerror: HTTP Error 404: Not Found

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

Throws 404 Error

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.