Emoji Horoscope

Web, Python


Description

Now, I don't believe in horoscopes, but I did find an API that does! It's called Aztro, so I thought it would be fun to make a project that uses it.

So utilizing Aztro, this project generates a horoscope for the user and displays it in emojis.

How it Works

The web app is pretty simple, users input their astrological sign and then this makes a call to the Aztro API for the text horoscope. This text is then fed to the IBM Watson Tone Analyzer, which I then map the results of to specific emojis.


joy = ['๐Ÿ˜','๐Ÿ˜€','๐Ÿ˜‚','๐Ÿ˜†','๐Ÿค‘','๐Ÿคฃ','๐Ÿ˜Š','๐Ÿ˜‹','๐Ÿ˜','๐Ÿ˜‡'] 
anger = ['๐Ÿ˜ก','๐Ÿคฌ','๐Ÿ˜ ','๐Ÿคฏ','๐Ÿ˜ˆ','๐Ÿ˜ค']
fear = ['๐Ÿ˜ฑ','๐Ÿ˜ฐ','๐Ÿ˜จ','๐Ÿ˜ฌ','๐Ÿ˜ณ','๐Ÿ˜ฅ']
sadness = ['โ˜น๏ธ','๐Ÿ˜–','๐Ÿ˜ž','๐Ÿ˜ข','๐Ÿ˜ญ','๐Ÿ˜•','๐Ÿ™ƒ','๐Ÿ˜”']
analytical = ['๐Ÿค”','๐Ÿคจ','๐Ÿง']
confident = ['๐Ÿ˜›','๐Ÿ˜œ','๐Ÿ˜']
tentative = ['๐Ÿ˜’','๐Ÿ˜‘','๐Ÿ˜“','๐Ÿคญ']
                    

The Result

Although it's no longer up, below is a clip of the web app in action.

A gif of the web app in action.