Skip to content

Streak keeper and XP farm for Duolingo. Never get demoted again!

Notifications You must be signed in to change notification settings

Sodiumchloridy/duolingo-auto-streak

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

duolingo-auto-streak

Keep my Duolingo streak

Streak keeper and XP farm for Duolingo that can be automated using Github Actions. Never get demoted again!

How to use

  1. Fork this repository
  2. Go to Duolingo
  3. While logged in, open the browser's console (Option (⌥) + Command (⌘) + J (on macOS) or Shift + CTRL + J (on Windows/Linux))
  4. Get the JWT token by pasting this in the console, and copy the value ( without ')
document.cookie
  .split(';')
  .find(cookie => cookie.includes('jwt_token'))
  .split('=')[1]
  1. Go to your forked repository
  2. Go to Settings > Secrets and Variables > Actions . And click the button New Repository secret
  3. For the secret name use DUOLINGO_JWT and for the secret value use the copied value from step 4.
  4. Go the your forked repository and go the Actions tab and press the button I understand my workflows, go ahead and enable them

For SESSION_PAYLOAD in index.js, replace the sample SESSION_PAYLOAD with your own:

Video Guide to retrieve SESSION_PAYLOAD: https://www.youtube.com/watch?v=jVcRsE_T8ew

Duolingo Sessions Payload Guide

  1. While in Duolingo web app, open developer console [F12], navigate to 'Network' tab, proceed to start a lesson.
  2. Find the 'sessions' request, then under 'Payload' tab > 'view source' then copy & paste it to SESSION_PAYLOAD. *You might need to refresh the webpage (CTRL + R) to find the 'sessions' request.
  3. You're all set, head to Github Actions > 'Do a Duolingo lesson' > 'Run workflow' to do a test run.

Workflows

🔥 Streak Keeper

This project uses GitHub Actions scheduled workflow to keep your streak alive. The workflow can be viewed here.

📚 Study

This repository can also "study" lessons for you. This will give you XP so you won't get demoted never again! This workflow uses workflow_dispatch to trigger the study session. You can choose the number of lessons to be done. The workflow can be viewed here.

Caveats

  • This project won't help with your daily or friend quests, it can only earn XP to move up the league rank;
  • This project won't do real lessons or stories, only practices, so it won't affect your learning path;

About

Streak keeper and XP farm for Duolingo. Never get demoted again!

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%