Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/freakwill/pybrainyquote
🖋️Get quotes from brainyquote.com
https://github.com/freakwill/pybrainyquote
brainyquote bs4-requests pybrainyquote python quotes yaml
Last synced: 3 months ago
JSON representation
🖋️Get quotes from brainyquote.com
- Host: GitHub
- URL: https://github.com/freakwill/pybrainyquote
- Owner: Freakwill
- License: mit
- Created: 2018-11-21T00:37:54.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-06-06T11:05:38.000Z (over 1 year ago)
- Last Synced: 2024-11-13T12:23:30.360Z (3 months ago)
- Topics: brainyquote, bs4-requests, pybrainyquote, python, quotes, yaml
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PyBrainyquote
Get quotes from brainyquote. Make you life positive. It is more powerful then [viveksb007/pybrainyquote](https://github.com/viveksb007/pybrainyquote)
Requirements
-------------requests
bs4
furl
Download
---------`pip install pybrainyquote`
Why
--------The original one `brainyquote` is too simple.
Grammar
--------
Importfrom pybrainyquote import *
Get quotes
Quote.today(topic=what you like) # get today topic
get_popular_topics() # have a look at the lists of popular topics, if you do not have any idea
get_topics()
get_authors()Quote.find_all(topic) # just try the following
Quote.find(topic)
Quote.find(topic)
Quote.choice_yaml(yamlfile) # choose a quote in yaml files randomly
Quote.read_yaml(yamlfile)In most cases, we need not operate Quote object, and the staticmethods are used only.
Future
-------
Define a search engine for quotes, and a method to get one quote randomly. (Completed partly)