Showing
1 changed file
with
22 additions
and
0 deletions
컴퓨터공학.js
0 → 100644
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=A07308&p_year=2022&p_term=10&initYn=Y', | ||
5 | + 'headers': { | ||
6 | + 'Cookie': 'JSESSIONID=aHGSkYnn7ZmXH5Wgx8So3tatw4J7LyR5g98tqYffSUU7qPhC7FFjOaemFCb8UgU5.amV1c19kb21haW4vV0hfU3VnYW5nMQ==; WMONID=R84FN19dbP4' | ||
7 | + }, | ||
8 | + formData: { | ||
9 | + 'attribute': 'lectListJson', | ||
10 | + 'lang': 'ko', | ||
11 | + 'loginYn': 'N', | ||
12 | + 'menu': '1', | ||
13 | + 'p_major': 'A07308', | ||
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 | +}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment