
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
YÖK Atlas için API wrapper'ı.
An API wrapper for YÖK Atlas
NOTE: This is not an official package. It uses the API's that YÖK Atlas' website consumes.
Have questions? Contact Me!
Install yok-atlas with npm
npm install yok-atlas
Type definitions? Included!
Üniversite Türü
| Ücret/Burs
| Öğretim Türü
etc all have type definitions. So you will get suggestions on your editor!Bilgisayar Mühendisliği - Örgün
and find it later by it's name later by searching in previous results!All happens under the hood. Just search and you will get nicely formatted, valid results!
Contributions are always welcome! BUT I don't want to deal with PR's until I expose an API to extend query capabilities. Until then you can suggest improvements about internals without changing the result format.
Search Parameter Name | Required? | Possible Values | Example |
---|---|---|---|
puanTuru | ⚠️ required | 'say' - 'söz' - 'ea' - 'dil' | 'say' |
YOPKodu | ❓ optional | string | '104010122' |
universiteAdi | ❓ optional | string | 'yıldız' |
programAdi | ❓ optional | string | 'bilgisayar' |
sehirAdi | ❓ optional | TurkiyeSehirIsimleri - Uppercase - Lowercase - KKTC-${string} | 'İstanbul' |
universiteTuru | ❓ optional | 'KKTC' - 'Devlet' - 'Vakıf' - 'Yabancı' | 'Devlet' |
ucretBurs | ❓ optional | "%25 indirimli" - "%50 indirimli" - "%75 indirimli" - "AÖ_Ücretli" - "Burslu" - "UE_Ücretli" - "Ücretli" - "Ücretsiz" - "İÖ_Ücretli" | 'Burslu' |
ogretimTuru | ❓ optional | "Açıköğretim" - "Uzaktan" - "Örgün" - "İkinci" | 'Örgün' |
doluluk | ❓ optional | "Doldu" - "Dolmadı" - "Yeni" | 'Doldu' |
You can import it as follows:
// Module imports
import { YOKAtlasAPI } from 'yok-atlas';
// Or you can use the default import
import YOKAtlasAPI from 'yok-atlas';
Or
// Require
var YOKAtlasAPI = require('yok-atlas').YOKAtlasAPI;
First of all, import the package.
import { YOKAtlasAPI } from 'yok-atlas';
Create a new instance:
const yokAtlasAPI = new YOKAtlasAPI();
Make a search and get the results as an array:
const results = await yokAtlasAPI.searchLisansTercihSihirbazi(
{
puanTuru: 'say',
sehirAdi: 'ankara',
doluluk: 'Doldu',
ogretimTuru: 'Örgün',
programAdi: 'Bilgisayar Mühendisliği',
},
{
searchName: `Ankara - Bilgisayar Mühendisliği - Örgün`,
}
);
Loop through search results to list "taban başarı puanı" for year 2021:
for (const entry of results) {
console.log(`---------- ${entry.program.kod} ----------`);
console.log(
entry.programKodu,
entry.universite.ad,
entry.program.fakulte,
entry.program.ad,
entry.yillaraGoreDegerler.find((x) => x.yil === 2021)!.tabanBasariSirasi
);
}
Make another search:
NOTE: If you will make multiple searches, catch each of them to avoid breaking the complete flow.
const anotherSearchResult = await yokAtlasAPI.searchLisansTercihSihirbazi(
{
puanTuru: 'söz',
sehirAdi: 'İSTANBUL',
universiteTuru: 'Vakıf',
ogretimTuru: 'Örgün',
ucretBurs: 'Burslu',
},
{
searchName: `İstanbul'daki Vakıf Üniversitelerinin Burslu Sözel Lisans Programları`,
}
).catch(error => console.log(error))
Just make a search to use its results when you need it:
await yokAtlasAPI.searchLisansTercihSihirbazi(
{
puanTuru: 'dil',
programAdi: 'ingilizce',
universiteTuru: 'Devlet',
},
{
searchName: `Devlet Üniversitelerinin İngilizce ile alakalı Lisans Programları`,
}
);
Find your previous search named: "Ankara - Bilgisayar Mühendisliği - Örgün":
const ankaraOrgunBilgisayarMuh = yokAtlasAPI.previousSearchResults.find(
(x) => x.details.name === `Ankara - Bilgisayar Mühendisliği - Örgün`
);
Find ODTÜ's programs in your previous search:
if (ankaraOrgunBilgisayarMuh) {
const odtuBilgisayarProgramlari =
ankaraOrgunBilgisayarMuh.details.searchResults
.map((x) => (x.universite.ad.includes('ORTA DOĞU') ? x : null))
.filter((x) => x != null);
if (odtuBilgisayarProgramlari.length > 0) {
const programNamesFound = odtuBilgisayarProgramlari.map((x) => x && x.program.ad).join(', ')
}
}
Access previous successful search results:
const myPreviousSearchResulsts = yokAtlasAPI.previousSearchResults;
Access previous failed searches (Failed to parse or validate)
NOTE: If the request itself fails, it's not added to the failed searches.
NOTE: You still need to expect & catch errors per search you made since it will throw an error either it is network requst fail, failed to parse or validate.
const myFailedSearchResults = yokAtlasAPI.failedSearchResults;
You can import the provided types for search results of Lisans Tercih Sihirbazı
import { LisansTercihSearchResults, LisansTercihSearchResultRecord } from 'yok-atlas';
You will get the result in this format:
type LisansTercihSearchResultRecord = {
programKodu: string;
universite: {
ad: string;
tur: 'KKTC' | 'Devlet' | 'Vakıf' | 'Yabancı';
sehir: string;
};
program: {
kod: string;
puanTuru: 'say' | 'söz' | 'ea' | 'dil';
fakulte: string;
ad: string;
ucretTuru:
| '%25 indirimli'
| '%50 indirimli'
| '%75 indirimli'
| 'AÖ_Ücretli'
| 'Burslu'
| 'UE_Ücretli'
| 'Ücretli'
| 'Ücretsiz'
| 'İÖ_Ücretli';
ogretimTuru: 'Açıköğretim' | 'Uzaktan' | 'Örgün' | 'İkinci';
doluluk: 'Doldu' | 'Dolmadı' | 'Yeni';
};
yillaraGoreDegerler: Array<{
yil: 2022 | 2021 | 2020 | 2019;
yerlesenKisiSayisi: 'Dolmadı' | number | null;
kontenjan: number | null;
tabanBasariSirasi: number | 'Dolmadı' | null;
tabanPuan: number | 'Dolmadı' | null;
}>;
};
type LisansTercihSearchResults = Array<LisansTercihSearchResultRecord>;
const sayisalSearchResult: LisansTercihSearchResults = new YOKAtlasAPI().searchLisansTercihSihirbazi(
{
puanTuru: 'say',
ogretimTuru: 'Örgün',
}
);
const firstResult: LisansTercihSearchResultRecord = yokAtlasAPI.previousSearchResults[0].details.searchResults[0];
There is not much to document for now since the wrapper only has one functionality.
I will try to create a decent documentation when I complete 1-2 achivements on roadmap.
Tests? Haha. No...
Kidding. I will write some.
FAQs
Unofficial YÖK Atlas API Wrapper
The npm package yok-atlas receives a total of 0 weekly downloads. As such, yok-atlas popularity was classified as not popular.
We found that yok-atlas demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.