Get quotes from brainyquote.com
Get quotes from brainyquote. Make you life positive.
requests bs4 furl
pip install pybrainyquote
The original one brainyquote is too simple.
from pybrainyquote import *
Quote.today(topic=what you like) # get today topic get_popular_topics() # have a look at the lists popular topics, if you do not have any idea get_topics() get_authors() # just try the following Quote.find_all(topic) Quote.find(topic) Quote.find(topic) Quote.choice_yaml(yamlfile) # choose a quote in yaml files randomly Quote.read_yaml(yamlfile)
Define a search engine for quotes, and a method to get one quote randomly. (Completed partly)