곽병민

Organize crawling data

...@@ -15,8 +15,20 @@ var options = { ...@@ -15,8 +15,20 @@ var options = {
15 'p_term': '10', 15 'p_term': '10',
16 'initYn': 'Y' 16 'initYn': 'Y'
17 } 17 }
18 +
18 }; 19 };
20 +
19 request(options, function (error, response) { 21 request(options, function (error, response) {
20 if (error) throw new Error(error); 22 if (error) throw new Error(error);
21 - console.log(response.body); 23 + var jason = response.body
22 -}); 24 + var json = JSON.parse(jason)
25 +
26 + const data = {}
27 +
28 + for (var i in json["rows"]) {
29 + console.log(json["rows"][i])
30 +
31 +
32 + }
33 + console.log(json["rows"][0]["subjt_name"])
34 +});
...\ No newline at end of file ...\ No newline at end of file
......