Skip to content
Michael Lizzio

Duolingo Hack

A Duolingo bot that turned speaking practice into an XP machine

  • Python
  • Selenium
  • Beautiful Soup
  • Virtual audio cable
  • PyAudio

May 2023 – July 2024Archived

What it is
A bot that did my Duolingo lessons for me.
Why I made it
I got tired of doing the same Duolingo exercises every day.
What I did
I wrote it in Python with Selenium. The first version ran several story sessions at once, and the final one recorded each speaking prompt and played it right back through a virtual microphone.
How it turned out
It got me thousands of XP and a win in the Diamond League. I retired it once I started actually using Duolingo to learn, but I'm still keeping the streak alive.

The details

The first version

My first approach used Duolingo stories. I ran several browser sessions at once, completing multiple stories every thirty seconds and stacking up XP until Duolingo stopped awarding it.

The audio trick

For speaking practice, Duolingo first played the phrase it wanted me to repeat. My bot recorded that audio, trimmed the silence, and sent the exact same phrase back through a virtual microphone. That version helped me rack up thousands of XP and win the Diamond League.

What happened next

I retired the bot because I actually use Duolingo to learn now, but I'm still keeping the streak alive.