Long18 / auto-streak-duolingo

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auto Streak Duolingo

Do a Duolingo lesson

Streak keeper and XP farm for Duolingo. 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 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:

  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!

License:MIT License


Languages

Language:JavaScript 100.0%