Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

JamieMagee/hashflags-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Hashflags Azure Functions

GitHub Workflow Status MIT license

This git reposistory contains a collection of Azure functions related to Twitter hashflags. Currently there are 5 functions:

  1. ActiveHashflags fetches 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.
  2. UpdateHashflagState reads the JSON, and updates the hashflag table with the current state of each hashflag.
  3. StoreHashflagImage downloads the hashflag image, and stores it in a blob store.
  4. CreateHeroImage creates a hero image of the hashtag and hashflag.
  5. TweetHashflag tweets 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.

Hashflags from Eurovision 2015 Hashflags from Eurovision 2015

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?

Architectural diagram of the functions

Credits

If you like this follow @Jamie_Magee on Twitter.

Releases

No releases published

Packages

No packages published

Languages