이나경

Add subject information(4)

1 +var request = require('request');
2 +var options = {
3 + 'method': 'GET',
4 + 'url': 'https://sugang.khu.ac.kr/core?attribute=lectListJson&lang=ko&loginYn=N&menu=1&p_major=A10627&p_year=2022&p_term=10&initYn=Y',
5 + 'headers': {
6 + 'Cookie': 'JSESSIONID=0hka3HzdSAOOvWw17F0W3OixVWW5MKzJg31nZrYU3yjMlmIv7GF9vasjvDsYwTAe.amV1c19kb21haW4vV0hfU3VnYW5nMQ==; WMONID=R84FN19dbP4'
7 + },
8 + formData: {
9 + 'attribute': 'lectListJson',
10 + 'lang': 'ko',
11 + 'loginYn': 'N',
12 + 'menu': '1',
13 + 'p_major': 'A10627',
14 + 'p_year': '2022',
15 + 'p_term': '10',
16 + 'initYn': 'Y'
17 + }
18 +};
19 +request(options, function (error, response) {
20 + if (error) throw new Error(error);
21 + console.log(response.body);
22 +});