An Unofficial Brainy Quotes API Which Fetches Quotes from Brainy Quotes .
Make a get request specifying the category of quote you want
https://brainyquotes.vercel.app/quotes?category={category_name}
Example - https://brainyquotes.vercel.app/quotes?category=nature
Example Of Brainy Quote API Response Below
"data": [
{
"author": "By Frederick Douglass",
"authorlink": "https://www.brainyquote.com//authors/frederick-douglass-quotes",
"quote": "It is not light that we need, but fire; it is not the gentle shower, but thunder. We need the storm, the whirlwind, and the earthquake.",
"quotelink": "https://www.brainyquote.com//quotes/frederick_douglass_134570?src=t_nature",
"tags": [
"Light",
"Fire",
"Storm",
"Thunder"
]
},
{
"author": "By Henry David Thoreau",
"authorlink": "https://www.brainyquote.com//authors/henry-david-thoreau-quotes",
"quote": "Nature will bear the closest inspection. She invites us to lay our eye level with her smallest leaf, and take an insect view of its plain.",
"quotelink": "https://www.brainyquote.com//quotes/henry_david_thoreau_106919?src=t_nature",
"tags": [
"Leaf",
"View",
"Will",
"Insect"
]
}
],
"success": true
}
Install all dependencies listed in requirements.txt file.
-
To install all dependencies run -
$ sudo -H pip3 install -r requirements.txt
-
Start the server
$ python app.py