Skip to main content

Get quotes from brainyquote. Make you life positive.

Project description

PyBrainyquote

Get quotes from brainyquote. Make you life positive. :smile:

Requirements

  • requests
  • bs4
  • furl

Download

pip install pybrainyquote

Why

The original one brainyquote is too simple.

Grammar

import

from pybrainyquote import *

# or
# import pybrainyquote as bq

get quotes

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, methods mimicking `bs4`
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)

Future

Define a search engine for quotes, and a method to get one quote randomly. (Completed partly)

Support f-string from now on!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pybrainyquote, version 1.1
Filename, size File type Python version Upload date Hashes
Filename, size pybrainyquote-1.1-py3-none-any.whl (4.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pybrainyquote-1.1.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page