-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelper.py
108 lines (78 loc) · 1.82 KB
/
helper.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
def get_course(s: str):
s = s.strip()
return s
def get_sem(s: str):
sem = s.strip()
return sem
def get_branch(s: str):
br = s.strip()
return br
def get_month_year(s: str):
my = s.strip().upper()
return my
def get_name(s: str):
n = s.strip()
return n
def get_status(s: str):
st = s.strip()
return st
def get_sch_no(s: str):
sch_no = s.strip()
return sch_no
def get_sub_code(s: str):
s = s.strip().split('<br />')
sub_arr = []
for sc in s:
sc = sc.strip()
if sc:
sub_arr.append(sc)
return sub_arr
def get_sub_name(s: str):
s = s.strip().split('<br />')
sub_arr = []
for sn in s:
sn = sn.strip()
if sn:
sub_arr.append(sn)
return sub_arr
def get_credit(s: str):
s = s.strip().split('<br /><div align=\'center\'>')
cr_arr = []
for cr in s:
cr = cr.strip()
if cr:
cr_arr.append((cr.split('<br />'))[0])
return cr_arr
def get_credit_earned(s: str):
s = s.strip().split('<br />')
cr_arr = []
for cr in s:
cr = cr.strip()
if cr:
cr_arr.append(cr)
return cr_arr
def get_pointer(s: str):
s = s.strip().split('<br />')
pnt_arr = []
for pnt in s:
pnt = pnt.strip()
if pnt:
pnt_arr.append(pnt)
return pnt_arr
def get_grade(s: str):
s = s.strip().split('<br />')
grd_arr = []
for grd in s:
grd = grd.strip()
if grd:
grd_arr.append(grd)
return grd_arr
def get_sgpa(s: str):
s = s.strip()
return s
def get_cgpa(s: str):
s = (s.strip().split())[0]
return s
def get_result(s: str):
s = s.strip()
return s