Skip to main content

dnevnik-mos-ru

time tracker CodeFactor Discord GitHub Repo stars PyPI

Python библиотека, для удобного доступа к ЭЖД.

Пример кода
# Вывод сегодняшних уроков
# Импорт библиотеки
import dnevnik

# Данные для авторизации
LOGIN = ""
PASSWORD = ""

# Данные для Selenium
DRIVER_PATH = ""

# Авторизуемся
me = dnevnik.Client(login=LOGIN, password=PASSWORD, selenium_executable_path=DRIVER_PATH)

# Получаем список уроков на сегодня
lessons = me.get_lessons()

# Выводим уроки по порядку
for lesson in lessons:
    print("{0.lesson_number}. {0.subject_name}".format(lesson))

Установка

Установка Selenium

Пока реализован только вариант с ChromeDriver.

  1. Зайти в Google Chrome. Три точки сверху -> Справка -> О браузуре Google Chrome
  2. Запомнить версию.
  3. Отсюда скачать chromedriver для своей версии Chrome и своей OS
  4. Скопируйте исполняемый файл в какую-нибудь папку и запомните путь.
  5. В конструкторе Client параметр флаг use_selenium и внесите путь в selenium_executable_path
Установка библиотеки
  • В Linux/MacOS
    pip3 install dnevnik-mos-ru
    
  • В Windows
    pip install dnevnik-mos-ru
    
Документация API

Документацию API в формате .RAML можно найти в в папке docs. Можно сгенерировать файл .HTML с помощью утилиты raml2html

Документация библиотеки

Документацию библиотеки можно будет найти здесь.

Join Discord Server

Metadata

Release files for dnevnik-mos-ru 2.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for dnevnik-mos-ru 2.3.0
File Interpreter ABI Platform Actions
dnevnik_mos_ru-2.3.0-py3-none-any.whl Python 3 none any Details for dnevnik_mos_ru-2.3.0-py3-none-any.whl

Release files / dnevnik_mos_ru-2.3.0-py3-none-any.whl

Download URL dnevnik_mos_ru-2.3.0-py3-none-any.whl
Size 21.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
875f503786d5b0bfc0df7e475d2af01daaad05ea75708216c9aef32e69bfc4b3
BLAKE2b-256 checksum
How to use checksums
e6cb9d1e95d2fa796921ece0191154be1f106e3feb1bbc34d0608cf9d7507db6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Security for dnevnik-mos-ru 2.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page