knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
Right now, the package is being developed so use the following code to install the package.
devtools::install_github('mowgl-i/Rchamp@Development') library(Rchamp)
You'll want to have a slug/clip id to start with.
This is the url a twitch clip : https://clips.twitch.tv/GracefulIntelligentKathyMikeHogu-uIO9Kd0g_KDqb4mQ
The slug/id can be found after the last shash : GracefulIntelligentKathyMikeHogu-uIO9Kd0g_KDqb4mQ
You will use this slug in the get_clip_data()
and get_clip_chat()
functions like so... get_clip_data('slug')
This will return:
Dataframe containing messages,users,badge,badge version,and emotes.
get_clip_chat('GracefulIntelligentKathyMikeHogu-uIO9Kd0g_KDqb4mQ')
head(chat_dataframe)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.