Skip to content

A NodeJS tool to export Streamlabs Loyalty Extension points to a StreamElements-compatible CSV file.

Notifications You must be signed in to change notification settings

ashcorpdev/sl-export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STREAMLABS LOYALTY TO STREAMELEMENTS EXPORTER

This tool will allow you to export your Streamlabs Loyalty Extension points to a CSV file that can be imported into StreamElements.

This tool uses cookies and tokens from your browser - this may lead to Streamlabs potentially locking your account if used incorrectly.

Use at your own risk.

Setup

In order for the tool to work, you'll need to install NodeJS and grab a few details from the developer tools in your browser. Please follow the instructions below to get started.

NodeJS

Make sure you have the latest LTS version of NodeJS installed. You can download it here.

Download the tool

If you use git, clone the repo using the following command:

git clone https://github.com/ashcorpdev/sl-export.git && cd sl-export && npm i

Alternatively, download this repo as a zip file (Click the green Code button in the top-right and click Download ZIP), extract it in a location of your choosing, and open a terminal in the directory.

Streamlabs Cookies

Make a copy of the provided .env.example file and rename it to .env. Once that's done, you'll need to login to the Streamlabs Dashboard and sign in with your Twitch account if you haven't done so already.

Once you're logged in, go to the Loyalty Extension page, you'll need to open up your browser's developer tools. On Firefox/Chrome, you can press F12 to do this; other browsers may have different hotkeys.

On Firefox/Chrome, navigate to the Network tab and reload the Streamlabs Loyalty page. Find the user-points request and click it. Scrolls down to the Response Headers and grab the user-agent, cookie and x-csrf-token values replace the placeholder text inside of .env file.

Example of valid headers:

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) ... ... ...
Cookie: slobs_user=o1h3o1i23h123......; __sla-uuid=....; __stripe_mid=.....; ... ... ...
x-csrf-token: iuu423odu4g9783g4go1jbdHG0ivA... ... ...

WARNING! Never provide these to anybody else. They will give complete access to your Streamlabs data, including any API access, payment information or personal information.

Once that's done, close the developer tools and scroll down to the bottom of the Loyalty page and check how many pages are shown.

Change the PAGES option in the .env file to be the number of pages that you saw.

Usage

Running the tool

Ensure you are in the directory that you've download the tool into. Ensure you have all of the values set in the .env file in the root directory of the project.

Run the following command and the tool should begin downloading the required data:

npm start

The tool will give you a running total of the progress made on each page. Once it has finished gathering all of the data, it should output all the user points into a sl-points.csv file in the root directory of the tool.

Once this is done and the tool says it's safe to do so, you can close the terminal or press Ctrl+C to kill the process.

Note: This process can take a long time. By default, the tool will make a maximum of 2 requests per second to prevent your account from being blocked by Streamlabs. If you wish to adjust this, you can edit the settings in index.js to your preferred timings - do so at your own risk.

Uploading to StreamElements

Log into the StreamElements Dashboard and click on your profile image in the top-right corner of the page. Click on Import, then scroll down and select Other. You will be redirected to the Imports page for Streamelements.

Click the IMPORT NOW button underneath the Import from CSV option. Select the sl-points.csv file and click SELECT FILES.

You should now have succesfully imported your streamlabs currency into StreamElements!

About

A NodeJS tool to export Streamlabs Loyalty Extension points to a StreamElements-compatible CSV file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published