This tweet updates itself...https://t.co/FwNRzUaxtu— Tod Sacerdoti (@tod ) May 20, 2020
In fact, the exact metrics for this tweet are:
- 72545 impressions
- 226 likes
- 43 retweets
- 3 quotes
- 3 replies
The reason the title doesn't include the exact numbers is due to limitations of the Twitter API, which I will get to later.
View the live workflow code here.
How this workflow works (in three easy steps):
1. Event Source - emits new events when Tweet Metrics change
2. Code Step - Dev.to post in markdown with title and description
3. Action - update the article using the Dev.to API
Why does the tweet not update in real time?
- Unfortunately, Twitter doesn't update the data of twitter cards in real time, which is why the metrics are rounded in the tweet
- Twitter cards can be updated via the Card Validator
- However, doing this programmatically would violate Twitter's Developer Terms
- Twitter says DO NOT "use non-API-based forms of automation, such as scripting the Twitter website. The use of these techniques may result in the permanent suspension of your account."
Why not build your own?
- View the live workflow code here
- Copy the workflow into your account
- Add your Twitter / Dev.to credentials and make any code changes
- Deploy the workflow and you are live
Level up every day