ktis default information parser
Project description
# ktis-parser
This is parser of default information of "ktis.kookmin.ac.kr" with student-number & password
## How 2 use
```
pip3 install ktis-parser
```
or
```
pip install ktis-parser
```
after then
```python
from ktis-parser import *
print(parseInfoFromKTIS('2017XXXX','password'))
```
it return when, successful.
```json
{
'status': True,
'content': {
'id': '2017XXXX',
'name': '{YOUR_NAME}',
'ssn': '{YOUR_SOCIAL_SECURITY_NUMBER}',
'college': '{YOUR_COLLEGE}',
'school': '{YOUR_SCHOOL}',
'time': '{YOUR_TIME}',
'major': '{YOUR_MAJOR}',
'date': '{YOUR_IN_DATE}',
'status': '{YOUR_STATUS}',
'grade': '{YOUR_GRADE}',
'passwd': '{YOUR_PASSWORD}'
}
}
```
then fail case
```json
{
'status': False,
'content': '존재하지 않는 사용자입니다.'
}
```
```json
{
'status': False,
'content': '비밀번호가 맞지않습니다\\r\\n비밀번호 입력오류 횟수 : (2 / 5)'
}
```
This is parser of default information of "ktis.kookmin.ac.kr" with student-number & password
## How 2 use
```
pip3 install ktis-parser
```
or
```
pip install ktis-parser
```
after then
```python
from ktis-parser import *
print(parseInfoFromKTIS('2017XXXX','password'))
```
it return when, successful.
```json
{
'status': True,
'content': {
'id': '2017XXXX',
'name': '{YOUR_NAME}',
'ssn': '{YOUR_SOCIAL_SECURITY_NUMBER}',
'college': '{YOUR_COLLEGE}',
'school': '{YOUR_SCHOOL}',
'time': '{YOUR_TIME}',
'major': '{YOUR_MAJOR}',
'date': '{YOUR_IN_DATE}',
'status': '{YOUR_STATUS}',
'grade': '{YOUR_GRADE}',
'passwd': '{YOUR_PASSWORD}'
}
}
```
then fail case
```json
{
'status': False,
'content': '존재하지 않는 사용자입니다.'
}
```
```json
{
'status': False,
'content': '비밀번호가 맞지않습니다\\r\\n비밀번호 입력오류 횟수 : (2 / 5)'
}
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ktis-parser-0.0.1.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for ktis_parser-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09e6393c79e33af6424c167fa422bac68ddb27e3ba78f701ca88f023ac9b5733 |
|
MD5 | ec95f172005eb23b62e839af99b6600e |
|
BLAKE2b-256 | 9315956f7c3a1b213d425b2b4d33b92658c905a26be1042a0e194880b2a18650 |