Skip to content

Stramn/school_diary_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

school_diary_parser

Parser for schools.by. Collects grades of one student, stores them in JSON file and calculates average mark.

Installation

Prerequisites

  • Python 3.8 or higher

Setup

  1. Clone the repository:
git clone https://github.com/Stramn/school_diary_parser.git
cd school_diary_parser
  1. (Optional) Create and activate virtual environment:
python -m venv venv
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Environment Configuration:
    • Create .env file
    • edit the .env file with your actual configuration values: LOGIN = "your_login" PASSWORD = "your_password"

Usage

python scraper.py 

collects marks from your account on schools.by, creates marks.json file and fills it with marks

python calculate.py

calculates average marks from marks.json

About

Parser for schools.by. Collects grades of one student, stores them in JSON and calculates average mark.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages