/leoapi

Simple LinguaLeo API wrapper

Primary LanguagePythonMIT LicenseMIT

Simple LinguaLeo api wrapper

For start:

  1. Clone this project

  2. Create a virtual environment

    $ pipenv --three

  3. Install requirements

    $ pipenv install

You can learn more about pipenv on official github page

Simple usage:

In [1]: from api import LinguaLeoApi

In [2]: api = LinguaLeoApi(email='your@mail.com', password='yourpassword')

In [3]: api.auth()

In [4]: api.translate(word='word')
Out[4]: ['слово', 'сообщение', 'речь', 'разговор', 'обещание']

In [5]: api.send_word(word='word', translate='слово')

Enjoy!