Simple unofficial package to interact with the same API that the Cleverbot website uses for free.
Project description
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
Installation
pip install cleverbotfreeapi
Usage
import cleverbotfreeapi
# Without context or session
cleverbotfreeapi.cleverbot("Hello.")
# With context, without session
# Please note that context should include messages sent to Cleverbot as well as the responses
cleverbotfreeapi.cleverbot("Bad.", ["hi.", "How are you?"])
# Without context, with session
cleverbotfreeapi.cleverbot("Hi.", session="Deftera")
cleverbotfreeapi.cleverbot("Fine :)", session="Deftera")
# With context and session
# An ongoing conversation with the first question as "How are you?"
cleverbot(input(">>"), ["hi.", "How are you?"], "How are you?")
while True:
print(cleverbot(input(">>"), session="How are you?"))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cleverbotfreeapi-1.1.0.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for cleverbotfreeapi-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64534d2752746726cd51e1d78670761bbd783ed269287275f6d241149fc943bf |
|
MD5 | ae3ec9ed25ab086c76f281e67e236019 |
|
BLAKE2b-256 | c813ea4a60810bc83bf3b314c58972f95b61a0b9a7bf5f7e5278b3aa612e0811 |