[FEATURE] Structured Superchat amount
See original GitHub issueIs your feature request related to a problem? Please describe.
Currently, the Superchat amount is provided as string. To aggregate its data, it should cause parsing text. If YouTube provides structured data, it should be better passing as it.
Describe the solution you’d like
"¥1,000"
{amount: 1000, currency: "JPY"}
Describe alternatives you’ve considered
Additional context
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (10 by maintainers)
Top Results From Across the Web
YouTube Super Chat: The Latest YouTube Feature for Creators
Creators can use YouTube Super Chat to monetize when they go live. ... The dollar amount isn't just a random donation figure.
Read more >SuperChatEvents | YouTube Live Streaming API
The tier is based on the amount of money spent to purchase the message. It also determines the color used to highlight the...
Read more >YouTube Rolls Out 'Super Chat' Feature To 19 Additional ...
Super Chats cost anywhere between $1 and $500 apiece (for a maximum comment duration of five hours), though there are limits as to...
Read more >What is YouTube Super Chat and how does it work? - Pocket-lint
Creators currently get 70 per cent of the revenue sent via Super Chat and Super Stickers, with the remaining money going to YouTube....
Read more >Where does the money of SuperChat go, to YouTube ... - Quora
YouTube takes a 30% cut from all the transactional revenue earned from your channel including super chats, memberships, thanks button etc. Also, it...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thoughts on #67 before I merge?
Superchat messages with an amount attached are now parsed, returning a
money
dictionary containing:text
: text used for display purposesamount
: float value of moneycurrency
: ISO 4217 currency code (e.g. USD)currency_symbol
: currency symbol (e.g. $)As an example use-case:
This sums up the amounts of different currencies and prints this information out (along with number of members who joined during a stream). Example output is as follows:
I actually have plans to implement exactly that! 😃 https://github.com/xenova/chat-downloader/blob/643dc3bfea6d83a536fbf08dd6d67c04a67802de/chat_downloader/sites/youtube.py#L420
I wrote it to myself as a comment, but I will implement it as soon as possible.