Parser for schools.by. Collects grades of one student, stores them in JSON file and calculates average mark.
- Python 3.8 or higher
- Clone the repository:
git clone https://github.com/Stramn/school_diary_parser.git
cd school_diary_parser- (Optional) Create and activate virtual environment:
python -m venv venv
# On Windows:
venv\Scripts\activate# On macOS/Linux:
source venv/bin/activate- Install dependencies:
pip install -r requirements.txt- Environment Configuration:
- Create .env file
- edit the .env file with your actual configuration values: LOGIN = "your_login" PASSWORD = "your_password"
python scraper.py collects marks from your account on schools.by, creates marks.json file and fills it with marks
python calculate.pycalculates average marks from marks.json