e-Dnevnik API
Kinda slow (avarage 3 seconds) ednevnik api for getting user information.
Requirements
- selenium
- chrome
- webdriver (needs to be installed via following link https://chromedriver.chromium.org/downloads [needs to be the same version as chrome installed on your computer])
Description of functions
authfunction returns if given username and password are correct.gradefunction returns which class a given user is.nameSurnamefunction returns a name and surname of given user in a form of list.userNumberfunction returns ordinal number of a user.getClassYearfunction returns current class year.getSchoolfunction returns users current school.userInfofunction returns all info of a given user. (output is given in a list in the following order: [name, surname, grade, userNumber, year, school] and every element is a string )
Example Code 1
import ednevnik
username = "jeremy.clarkson@skole.hr"
password = "76ghBI7g"
path = "C:\Users\James\chromedriver.exe" #path is your personal path where webdriver is located on your PC
dnevnik = ednevnik.api(username, password, path)
userClass = dnevnik.grade()
print(userClass)
Example Code 2
import ednevnik
dnevnik = ednevnik.api("james.may@skole.hr", "09OIjs65", "C:\Users\James\Programs\chromedriver.exe")
authentication = dnevnik.auth()
if authentication:
print('User is valid.')
else:
print("User info is incorrect or doesn't exist.")
Example Code 3
import ednevnik
username = "richard.hammond@skole.hr"
password = "9865Y7jH"
path = "C:\Users\Richard\Modules\chromedriver.exe" #path is your personal path where webdriver is located on your PC
dnevnik = ednevnik.api(username, password, path)
userInformation = dnevnik.userInfo()
print(userInformation)
Metadata
Release files for ednevnik 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ednevnik-0.0.5.tar.gz | 3.6 kB | Without provenance | Details for ednevnik-0.0.5.tar.gz |
Release files / ednevnik-0.0.5.tar.gz
| Download URL | ednevnik-0.0.5.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6d5bb89cd65148c7c9e60b376af5b47332f44d36a403fc06a58d2513396ff71
|
|
BLAKE2b-256 checksum How to use checksums |
18c6afc91c092324b32a2cd6bb4d2f24d571a08672d362ddda82806d55f03f5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
|
Security for ednevnik 0.0.5
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.