Get quotes from brainyquote. Make you life positive. It is more powerful then viveksb007/pybrainyquote
requests
bs4
furl
pip install pybrainyquote
The original one brainyquote
is too simple.
Import
from pybrainyquote import *
Get quotes
Quote.today(topic=what you like) # get today topic
get_popular_topics() # have a look at the lists of popular topics, if you do not have any idea
get_topics()
get_authors()
Quote.find_all(topic) # just try the following
Quote.find(topic)
Quote.find(topic)
Quote.choice_yaml(yamlfile) # choose a quote in yaml files randomly
Quote.read_yaml(yamlfile)
In most cases, we need not operate Quote object, and the staticmethods are used only.
Define a search engine for quotes, and a method to get one quote randomly. (Completed partly)