Blackjack is a surgeon bot who adds past year grade distributions of courses on metaKGP. It searches for all the courses on metaKGP and populates their infoboxes with their previous year grade distributions, if available from ERP.
- Clone from the pywikibot library from wikimedia to
~/blackjack
git clone https://gerrit.wikimedia.org/r/pywikibot/core.git ~/blackjack
-
Create a bot account on metakgp
-
Change to
~/blackjack
cd ~/blackjack
Create a user-config.py
file with the following data replacing 'blackjack' with the bot's name:
mylang = 'en'
family = 'metakgp'
usernames['metakgp']['en'] = 'blackjack'
- Generate user and family files.
python generate_user_files.py
python generate_family_files.py
-
Mine grades of all courses from
https://erp.iitkgp.ernet.in/Acad/Pre_Registration/subject_grade_status.jsp?subno=XXXXXXX
after signing in and save it toallCourses.json
-
Run blackjack.py
python blackjack.py