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
Release history Release notifications | RSS feed
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.1.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file pybrainyquote-1.1.tar.gz
.
File metadata
- Download URL: pybrainyquote-1.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.8.8 Darwin/19.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a581d916e30624ec226fe7e23a3d1706d62ed57594ef90d7d3f9f770c19bd5a1 |
|
MD5 | 47f7fd6dd99856a315fb5989868ee498 |
|
BLAKE2b-256 | 7bfed1a9888e8fd6d17858b40ff0d6c236d123ef26c9f74713d2e6cae7f4a896 |
File details
Details for the file pybrainyquote-1.1-py3-none-any.whl
.
File metadata
- Download URL: pybrainyquote-1.1-py3-none-any.whl
- Upload date:
- Size: 4.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c5068f258052ef7a7e83eac0bd2cdc0ca6886ebe843bf8b0abca1b03317b879 |
|
MD5 | 4830a02261f6a0ba9e80a3ae1083298f |
|
BLAKE2b-256 | e7699ef731ed6dfcce3ecb4678422638a6a30771629b23fa81240e039010d7ad |