/memrise-stats-fetcher

Fetches learning progress on Memrise using Kotless.

Primary LanguageKotlin

Memrise stats fetcher

Retrieves learned and total amount words from Memrise and exposes this data as http endpoint using Kotless and AWS Lambda.

API

How to run

  1. Please read this article to get familiar with Kotless and create AWS account(not necessary for local run)
  2. Store cookie from GET https://app.memrise.com/course/2022111/italian-1-32/ in application.properties file for local run. Note that for deployment to AWS you will have to replace hardcoded value during setting headers, due to Kotless restrictions
  3. Run ./gradlew local, or Gradle kotless:local task from IDE
  4. Navigate to http://localhost:8080/ in your browser. Response should look like this:
    {
        "2020-12-25": {
            "learnedWords": "239",
            "totalWords": "492",
            "longMemoryWords": "239",
            "createdAt": "2020-12-25T15:30:52.376",
            "error": null
        }
    }
    
  5. Run ./gradlew deploy to deploy your project to AWS(after configuring AWS as described here)

Links