Enter the text for getting a random quote with the given string in the below text area.


Python fortune API

This service provides random quotes
  • Method: modules.Fortune.fortune
    • arg1 : database file name
    • arg2 : Search word(optional)
    • Return : Random quote
            >>>print fortune.fortune('chanakya')
            Do not inhabit a country where you are not respected,\n cannot earn your
            livelihood,have no friends, or cannot\n acquire knowledge.\n"
            >>>print fortune.fortune('chanakya','charity')
            " The good habits of charity, learning and austerity\n practised during
            many past lives continue to be cultivated\n in this birth by virtue of
            the link (yoga) of this present\n life to the previous ones.\n"