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.

Source Distribution

pybrainyquote-1.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

pybrainyquote-1.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pybrainyquote-1.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Darwin/19.6.0

File hashes

Hashes for pybrainyquote-1.2.tar.gz
Algorithm Hash digest
SHA256 16561f62eb34c8f9fdb409a488e50975cc9f372b146708781fae7db15f8b291e
MD5 c68b1378cadfed5c36046f5c9152ca71
BLAKE2b-256 48e46a52a690d921d96292bbb5480cd202217e4f8006d618c9fcf6d07b88b792

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pybrainyquote-1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Darwin/19.6.0

File hashes

Hashes for pybrainyquote-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1b0294315874f8eab48d43466d1006debb5c5cd09d12c52d941d2fbff0407888
MD5 3b10d48dc75fd1ac94c1c35ee7ddda7f
BLAKE2b-256 0786a9fbb1c401e3021c5fc95781463b8e66d1c343e4a072fd3cf8c08dd2467d

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