Goodreads报价API的包装
quote的Python项目详细描述
关于
quote
是Goodreads报价API的python包装器,由gazpacho提供支持。在
快速启动
quote
使用简单:
fromquoteimportquotesearch='Jasper Fforde'result=quote(search,limit=2)print(result)# [{'author': 'Jasper Fforde',# 'book': 'Something Rotten',# 'quote': 'If the real world were a book, it would never find a publisher. Overlong, detailed to the point of distraction-and ultimately, without a major resolution.'},# {'author': 'Jasper Fforde',# 'book': 'The Well of Lost Plots',# 'quote': "After all, reading is arguably a far more creative and imaginative process than writing; when the reader creates emotion in their head, or the colors of the sky during the setting sun, or the smell of a warm summer's breeze on their face, they should reserve as much praise for themselves as they do for the writer - perhaps more."}]
quote
也可用作命令行工具:
安装
pip install -U quote
贡献
pip install -U quote
对于功能请求或错误报告,请使用Github Issues
- 项目
标签: