https://github.com/athityakumar/blackjack
Populates infoboxes of courses on metaKGP with their previous year grade distributions
https://github.com/athityakumar/blackjack
Last synced: about 1 year ago
JSON representation
Populates infoboxes of courses on metaKGP with their previous year grade distributions
- Host: GitHub
- URL: https://github.com/athityakumar/blackjack
- Owner: athityakumar
- Created: 2016-06-10T17:30:10.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-08T18:58:52.000Z (about 10 years ago)
- Last Synced: 2025-03-29T15:42:07.347Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Info
===
**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.
Setup
=====
* 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:
```python
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 to `allCourses.json`
* Run blackjack.py
```
python blackjack.py
```