Closed htahboub closed 4 years ago
@HTahboub
I created this as a way to side-step their paid API service by directly interacting with their website DOM. It looks like they have recently changed the functionality to use some kind of pagination when your conversation reaches a certain limit, i.e. url + /?1
, url + /?2
, etc., breaking this library. I'll work on making a fix for this soon, or if you would like to take a stab at it you can issue a Pull Request and I will review it. Thank you for bringing this to my attention.
Edit: Okay I think I have it fixed:
[-] Connecting to Cleverbot.com...
[-] Have a conversation with CleverBot...
[-] Just type "quit" to end the conversation
USER: 1
CLEVERBOT: 1 what?
USER: 2
CLEVERBOT: 5.
USER: 3
CLEVERBOT: Perp.
USER: 4
CLEVERBOT: 1.
USER: 5
CLEVERBOT: 0.
USER: 6
CLEVERBOT: 2.
USER: 7
CLEVERBOT: 21.
USER: 8
CLEVERBOT: 7.
USER: 9
CLEVERBOT: 8.
USER: 1
CLEVERBOT: Z.
USER: 2
CLEVERBOT: 3.
USER: 3
CLEVERBOT: 4.
USER: 4
CLEVERBOT: 5.
USER: 5
CLEVERBOT: 6.
USER: 6
CLEVERBOT: 7.
USER: 7
CLEVERBOT: Smirks.
USER: 8
CLEVERBOT: Eight.
USER: 9
CLEVERBOT: Nine.
USER: 0
CLEVERBOT: Roland megőrült.
USER:
Just need to make a commit and update PyPi and it will be fixed. I will close this issue when I have it done.
Should be fixed now, updated repository and PyPi. Closing this issue. Please leave a comment if you are still having problems with it and I will reopen the issue.
Thank you so much—this is perfect.
Either this hasn't been tested enough or this just happens on my machine (iMac). In a conversation like this one:-
I always get this error right after the fifteenth:-
I urgently need a fix for this. Thanks.