Skip to content

Instantly share code, notes, and snippets.

@taroyanaka
Created November 13, 2023 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taroyanaka/5c4b68afa2d3b89b93ebd06edc063781 to your computer and use it in GitHub Desktop.
Save taroyanaka/5c4b68afa2d3b89b93ebd06edc063781 to your computer and use it in GitHub Desktop.
get_youtube_live_chat_paid_array
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