Skip to content

Instantly share code, notes, and snippets.

@Galiold
Galiold / gpa_calculator.py
Last active April 10, 2021 12:44
An script to calculate total and last year GPA given the grade log from Ferdowsi University of Mashhad.
# First do pip install beautifulsoup4 pandas
from bs4 import BeautifulSoup
import pandas as pd
import os
with open('edu_log.html', 'r', encoding='utf8') as file:
contents = file.read()
soup = BeautifulSoup(contents, 'html.parser')