Git Product home page Git Product logo

autoduo's Introduction

License Python version Selenium version Stars

AutoDuo

An attempt to automatically perform Duolingo exercises via browser automation.

Setting up

Requirements

  • python 3.7
  • selenium web-drivers

Downloading Web-drivers

Selenium web-drivers need to be downloaded manually. They are not provided with the source package as they are continuously being updated by the respective browser developers.

AutoDuo currently supports following web-drivers.

Download required web driver(s) and put them inside drivers directory.

Provided downloader script in tools directory downloads the latest chrome-driver. However, if you are using an old chrome browser, you might have to manually download a compatible chrome-driver.

Final project hierarchy should be as follows.

AutoDuo (repository root directory)
├── drivers
│   └── chromedriver
├── tools
│   └── ...
├── LICENSE
├── README.md
└── ...

Installing Required Python Modules

It is recommended to use pipenv for installing required python modules.

Invoke following command from inside the project root directory to install all the requirements.

pipenv install

Usage

AutoDuo main script must be invoked with providing a valid Duolingo user-email and password as command-line arguments.

pipenv run python3 main.py

In the very first run, you have to manually log into your Duolingo account. This is not necessary in subsequent runs.

ToDo

  • Add support to play more levels (currently plays only the first level)
  • Improve translations
  • Support different web drivers

Known Bugs and Workarounds

  • The program can crash before starting a lesson. Ignore this and re-run.

autoduo's People

Contributors

sumudulansakara avatar

Stargazers

cheperboy avatar Saliya Hamparawa avatar

Watchers

 avatar

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.