Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 966 Bytes

File metadata and controls

50 lines (40 loc) · 966 Bytes

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