Created
November 13, 2023 00:43
-
-
Save taroyanaka/5c4b68afa2d3b89b93ebd06edc063781 to your computer and use it in GitHub Desktop.
get_youtube_live_chat_paid_array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array.from($$(".yt-live-chat-paid-message-renderer")) | |
.map(V=>V.textContent.match(/\¥.+?\n/)) | |
.filter(V=>V!==null) | |
.map(V=>V[0]) | |
.map(V=>V | |
.replaceAll("'", "") | |
.replaceAll("\¥", "") | |
.replaceAll(",", "") | |
.replaceAll("\n", "")) | |
.map(V=>Number(V)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment