-
Notifications
You must be signed in to change notification settings - Fork 1
/
getmarks.py
21 lines (17 loc) · 900 Bytes
/
getmarks.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# AUTHER : JERINISREADY
# DATE : 22nd JUNE 2017
# PROJECT: exam.cusat.ac.in WebScroller
from lib import csvSupport,webSupport
mRollNo = range(12141000,12141062) # mRollNo is the list of roll numbersof which we have to take the marks of.
mCsv = csvSupport.csv() # Creates a csv file and features to read/ write the contents of file.
mWeb = webSupport.webData() # Class which Scrolls into the web url and
#
for i in mRollNo:
mWeb.getData(i) # webData.getData(regn,url='<S8 Regular Exam Url>') Gets the data over Internet
eachData = mWeb.parse() # webData.parse() parse the html page using specific Regular Expression and returns
# the comma seperated lines.
print eachData # prints the value into terminal // comment it out to hide on terminal
try:
mCsv.addLine(eachData) # adds a new line to the file
except Exception:
mCsv.close() # Saves The file and exit