Coder Social home page Coder Social logo

duolingo_bot's Introduction

Duolingo XP Farmer & Learner

1. Requirements

  1. Install Chrome

  2. Install Chromedriver for your Chrome version from chromedriver.chromium.org/downloads

  3. Install Python 3.8, 3.9, or 3.10 (more versions could be compatible)

  4. Install Selenium 4.0.0 (more versions could be compatible):

    pip install selenium==4.0.0

2. Setup

  1. Create a dictionary.json file, then copy and paste the following content:

    {}
  2. Create a credentials.json file, then copy and paste the following content then enter your correct username and password:

    {
        "username" : "your_username",
        "password" : "your_password"
    }
  3. Open settings.json and set your own settings:

    {
        "chromedriver_path" : "C:/Path/to/chromedriver.exe",
    
        "headless"          : false,
        "incognito"         : false,
        "mute"              : false,
    
        "practice"          : true
    }
    • chromedriver_path is the full path to the appropriate Chromedriver for your Chrome version
    • headless will make the program run in the background if set to true
    • incognito will open Chrome in incognito mode if set to true
    • mute will mute Chrome if set to true
    • practice will let the program learn and run forever if set to true, otherwise, you will be asked to manually enter a skill every time

    Note: If headless is set to true, the program will always run in practice mode

3. Start

Start main.py. A new Chrome window with Duolingo will open (unless in headless mode) and the bot will log you in.

The bot will keep making mistakes at first, but once a sentence has been learned, it will be memorized (unless dictionary.json is erased).

In practice mode, it will keep going to duolingo.com/practice and practice infinitely. Otherwise, it will open duolingo.com/learn, and ask you to open a skill every time.

The supported challenges are:

  • Translate, where you are asked to translate from one language to another
  • Name, where you must translate a single word
  • Form, where you must fill in the blanks
  • Select, where you select the picture and translation representing a given word

The listening and speaking challenges are always skipped. There may be other types of challenges I do not know of - When encountering these, the skill will be restarted.

duolingo_bot's People

Contributors

chrisrahme avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

duolingo_bot's Issues

bug: bot not working in new Duolingo Layout

Traceback (most recent call last):
  File "C:\Users\***\***\**\Duolingo_Bot\main.py", line 111, in <module>
    while i < settings['practice_count']:
KeyError: 'practice_count'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.