/homeassistant-duolingo

HomeAssistant Duolingo parser

Primary LanguagePython

Data scrapper for Duolingo

Adds multiple sensors with information/statistics grabbed from Duolingo account

Installation

Requirements:

  1. Install this component by copying these files to custom_components/duolingo/.
  2. You will need to restart after installation for the component to start working.

Adding new device

To add the Duolingo Scrapper integration to your Home Assistant, use this My button:

Manual configuration steps

If the above My button doesn’t work, you can also perform the following steps manually:

Note

The users will be viewed from the JWT token point of view meaning that you might not see some datas when parsing other users with the same token.

How to get the JWT token?

The JWT token is unique per user and will be different based on for whom you will be logged as in your browser. You can get the JWT token by opening following:

Developer tools -> Go to the Console -> Insert the following command

document.cookie.match(new RegExp('(^| )jwt_token=([^;]+)'))[0].slice(11)

Inside the Console is your unique JWT token, you can copy it and use it in HomeAssistant.

PS. If your JWT token don't work make sure to not copy the brackets " or ' from Console (they are there only to define the type of the return value which is in this case string)

Wrong Right
'YOUR_TOKEN' YOUR_TOKEN