Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jamiemagee/hashflags-function
⚡ A collection of Azure functions related to Twitter hashflags
https://github.com/jamiemagee/hashflags-function
azure azure-functions csharp emoji hashflag hashtag twitter
Last synced: 3 months ago
JSON representation
⚡ A collection of Azure functions related to Twitter hashflags
- Host: GitHub
- URL: https://github.com/jamiemagee/hashflags-function
- Owner: JamieMagee
- License: mit
- Created: 2018-01-13T00:06:12.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2023-05-28T10:32:46.000Z (over 1 year ago)
- Last Synced: 2023-05-28T11:28:03.235Z (over 1 year ago)
- Topics: azure, azure-functions, csharp, emoji, hashflag, hashtag, twitter
- Language: C#
- Homepage: https://twitter.com/HashflagArchive
- Size: 812 KB
- Stars: 13
- Watchers: 3
- Forks: 2
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Twitter Hashflags Azure Functions
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/JamieMagee/hashflags-function/Build%20and%20Deploy?style=for-the-badge)
[![MIT license](https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)This git reposistory contains a collection of Azure functions related to Twitter [hashflags](http://hashfla.gs/). 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](https://hashflags.blob.core.windows.net/json/activeHashflags).
1. `UpdateHashflagState` reads the JSON, and updates the hashflag table with the current state of each hashflag.
1. `StoreHashflagImage` downloads the hashflag image, and stores it in a blob store.
1. `CreateHeroImage` creates a hero image of the hashtag and hashflag.
1. `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](https://i.imgur.com/f2tdQc3.png)
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](https://twitter.com/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](images/architecture.svg)
## Credits
If you like this follow [@Jamie_Magee](https://twitter.com/Jamie_Magee) on Twitter.