Twitter Hashflags Azure Functions
This git reposistory contains a collection of Azure functions related to Twitter hashflags. Currently there are 5 functions:
ActiveHashflagsfetches the active from Twitter, and stores them in a JSON object in an Azure Storage Blob. You can find the list of current hashflags here.
UpdateHashflagStatereads the JSON, and updates the hashflag table with the current state of each hashflag.
StoreHashflagImagedownloads the hashflag image, and stores it in a blob store.
CreateHeroImagecreates a hero image of the hashtag and hashflag.
TweetHashflagtweets the hashtag and hero image.
What is a Hashflag?
A hashflag, sometimes called Twitter emoji, is a small image that appears after a #hashtag for special events. They are not regular emoji, and you can only use them on the Twitter website, or the official Twitter apps.
Why create a Azure Functions?
Currently Twitter doesn't provide an official API for hashflags, and there is no official list of currently active hashflags. @hashflaglist tracks hashflags, but it's easy to miss one – especially as many of them are temporary.
The aim of this project is to allow people to use hashflags outside of Twitter, provide an up to date list of all the latest hashflags, as well as a historical archive of previous hashflags. In same the way that you can miss context when an emoji doesn't display correctly, hashflags are integral to talking about Twitter trends outside of the microcosm of Twitter. In the Eurovision example above, it's very hard to place the three letter hashtag alone without the distinctive Eurovision hashflag.
What's the architecture of the functions?
If you like this follow @Jamie_Magee on Twitter.