Skip to content

Instantly share code, notes, and snippets.

@AdamGerthel AdamGerthel/index.js
Created Jul 16, 2019

What would you like to do?
Tinder data funnel script (node.js)
* Node.js helper script for creating a SankeyMATIC funnel
* Step 1: Request Tinder from
* Step 2: Wait for your data
* Step 3: Place the data.json file from your data folder next to this script
* Step 4: Run the script: `$ node index.js`
* Step 5: Copy and paste the console output here:
const data = require('./data.json')
function sum (array) {
return array.reduce((total, curr) => total+=curr, 0)
const leftSwipes = sum(Object.values(data.Usage.swipes_passes))
const rightSwipes = sum(Object.values(data.Usage.swipes_likes))
const matches = sum(Object.values(data.Usage.matches))
const messaged = data.Messages.length
const results = `
Swipe [${leftSwipes}] Left swipe
Swipe [${rightSwipes}] Right swipe #00CC00
Right swipe [${rightSwipes - matches}] No match
Right swipe [${matches}] Match #00CC00
Match [${messaged}] Messaged #00CC00
Match [${matches - messaged}] No message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.