One Stop platform for all our scraping needs
$ git clone https://github.com/devclub-iitd/pantomath.git
$ pip3 install -r requirements.txt
Note: In case of Installation errors -
- error installing python-ldap, on a Debian/Ubuntu system:
sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev
- error with tkinter, on a Debian/Ubuntu system:
sudo apt-get install python3-tk
- error with cv2, on Debian/Ubuntu system:
pip3 install opencv-python
- error with bcrypt, on Debian/Ubuntu system:
sudo apt-get install build-essential libffi-dev python-dev
- Decide an
admin_secret
and adb_secret
for your application. - Generate the corresponding keys:
$ python3 utility/genkey.py <admin_secret> <db_secret>
- Copy the
ADMIN_SECRET
andDB_SECRET
spit out by the app - Export these two keys and add to
env.sh
for future setup$ export ADMIN_SECRET=<ADMIN_SECRET> && export DB_SECRET=<DB_SECRET>
- Decide a
SECRET_KEY
for signing the JWT API keys$ export SECRET_KEY=<SECRET_KEY>
- Alternatively, a
sample_env.sh
is provided. The values correspond to<ADMIN_SECRET>=adminpazz
and<DB_SECRET>=datapazz
.
- Start the app as described in next section.
- Head over to http://pantomath/admin (in your browser)
- Update all the databases from http://pantomath/admin/db
- Generate API key for your app from http://pantomath/admin/genkeys by entering the
<admin_secret>
, selecting the APIs needed, and a name for your application. - To list all registered API keys for your app, head over to http://pantomath/admin/keys
- To revoke access to some application, head over to http://pantomath/admin/revoke
$ . env.sh
$ export FLASK_APP=server.py
$ flask run --host=<IP> --port=<PORT>
Documentation is available at https://pantomath.docs.apiary.io/
- Gradesheet and Grades
- Student Profile and Department Info
- Courses list and information
- Student registered courses
- Student Daily Schedule
- Student Exam Schedule
- Facebook (@Siddhant)