Python 3 API wrapper to retrieve data from PDDIKTI Kemdikbud.
Python API wrapper makes it easy for you to get data from pddikti.kemdikbud.go.id
- V 1.0.0 "First Release"
- Python 3.*
- requests
$ pip install pddiktipy
Usage:
from pddiktipy import api
from pprint import pprint as p
a = api()
p(a.search_all('ilham riski'))
Fetch the whole data from api
a.search_all('ilham riski')
a.search_pt('University Name')
a.search_dosen('Lecturer Name')
a.search_prodi('Sistem Informasi')
a.search_mahasiswa('Ilham Riski Wibowo')
# mahasiswa, pt, dosen, prodi
a.search_by_category('mahasiswa', 'Ilham Riski Wibowo')
Specific data search, more return data
Data [current_page, max_page, pt [akreditasi, bujur, id, jln, jumlah_prodi, lintang, logo, nama, no_tel, npsn, provinsi, rasio, singkatan, website]]
specific_search_pt(self, keyword = '', provinsi = '',akreditas = '',jenis = '',status = '',koordinasi = '',tipe = '',page = '0')
specific_search_dosen(self, nama = '', nip = '', pt = '', prodi = '')
specific_search_prodi(self, prodi = '', pt = '', wilayah = '', akreditas = '', jenjang = '')
specific_search_mhs(self, nama = '', nipd = '', pt = '', prodi = '')
Dump data, this data is usually used for auto fill
a.dump_all_univ()
a.dump_all_provinsi()
a.dump_all_prodi()
Don't use this, because search fuction hardcoded on the client side instead of the server
a.get_univ_by_name('University Name')
a.get_uuid_univ_by_name_v1('University Name')
a.get_uuid_univ_by_name_v2('University Name')
a.get_univ_website_by_name('University Name')
a.get_uuid_dosen_by_name('Lecturer Name')
a.get_dosen_website_by_name('Lecturer Name')
a.get_uuid_mahasiswa_by_name('Ilham Riski Wibowo')
a.get_mahasiswa_website_by_name('Ilham Riski Wibowo')
Data [akreditas_list [akreditas, tgl_akreditasi, tgl_berlaku], bujur, email, id_sp, internet, jln, kode_pos, laboratorium, lintag, listrik luas_tanah, nama_rektor, nama_wil, nm_lamb, no_fax, no_tel, npsn, perpustakaan, ruang_kelas, sk_pendirian_sp, stat_sp, tgl_berdiri, tgl_sk_pendirian_sp, website]
a.detail_data_univ_by_name('University Name')
a.detail_data_univ_prodi_by_name('University Name')
Data [jumlah_bidangilmu, jumlah_fakultas, jumlah_prodi, jumlah_prodi_akreditasi, rasio_list [dosen, mahasiswa]]
a.detail_univ_jumlah_by_name('University Name')
a.detail_univ_dosen_by_name('University Name')
a.detail_dosen_by_name('University Name')
Data Raw Image
a.detail_univ_logo_by_name('University Name')
- Detail Page Program Study
- Detail Page Student
- Statistik chart
- News
- Data Pages
- Report
- Etc.