Skip to main content

Get quotes from brainyquote. Make you life positive.

Project description

==============
PyBrainyquote
==============

Get quotes from brainyquote. Make you life positive.

Requirements
-------------

requests

bs4

furl


Download
---------

pip install pybrainyquote


Why
--------

The original one `brainyquote` is too simple.



Grammar
--------

import::

from pybrainyquote import *


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
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)

Project details


Download files

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

Source Distribution

pybrainyquote-0.6.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

pybrainyquote-0.6-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file pybrainyquote-0.6.tar.gz.

File metadata

  • Download URL: pybrainyquote-0.6.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.8.8 Darwin/19.5.0

File hashes

Hashes for pybrainyquote-0.6.tar.gz
Algorithm Hash digest
SHA256 be477feb37b1105074a9392ba8cd3e768f3ab5c55ac2ceca04614ce05155799b
MD5 706b8583876c09f2b46e9c602b2e68fa
BLAKE2b-256 d2a2d002d24862f3f481a7240b3314b85af254131d41bc36bf0ae41536fae845

See more details on using hashes here.

File details

Details for the file pybrainyquote-0.6-py3-none-any.whl.

File metadata

  • Download URL: pybrainyquote-0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.8.8 Darwin/19.5.0

File hashes

Hashes for pybrainyquote-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6cc2c3f67ac627241d6569234f6d7cc8fb01cf349f3dcf2bb645c6994dc0d635
MD5 985dc723884d5d57555854f5463bb1d7
BLAKE2b-256 7742af3d1eb5d8472bc210127bbbff3d6fb5b4e767a0a8d689c93c298f1b229a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page