Golestan bot for getting summary of education data.
Create virtualenvironment and run:
$ pip3 install -r requirements.txt
- Method 1
$ chmod +x run.sh
$ ./run.sh
- Method 2
$ python3 manage.py makemigrations
$ python3 manage.py migrate
$ python3 manage.py collectstatic --noinput
$ python3 manage.py runserver
$ python3 manage.py createsuperuser
The only endpoint is /api/
POST /api/
data: stun=STUDENT_NUMBER&password=STUDENT_PASSWORD
for avoid rate-limit in order to debugging, pass nolimit=debug
to.
$ curl 'http://localhost:8000/api/' -X POST -H 'Content-Type: application/x-www-form-urlencoded' --data-raw 'stun=STUDENT_NUMBER&password=STUDENT_PASSWORD&debug=nolimit'
Change following configs in settings.py
:
- Replace
SECRET_KEY
with your own - Make sure
DEBUG
value isFalse
- Replace
*
inALLOWED_HOSTS
with your domain - Uncomment
SECURE_PROXY_SSL_HEADER
andSECURE_SSL_REDIRECT
for force HTTPS