Skip to content

Instantly share code, notes, and snippets.

@wyun
wyun / memrise-export.js
Last active June 22, 2018 16:14 — forked from raineorshine/memrise-export.js
Export Memrise course words to CSV
(() => {
function getWords(courseId, level) {
const url = `https://www.memrise.com/ajax/session/?course_id=${courseId}&level_index=${level}&session_slug=preview`
console.log('Fetching words from ' + url)
return fetch(url, { credentials: 'same-origin' })
// parse response
.then(res => {
return res.status === 200
? res.json()