Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김지훈
/
3line
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
2
Merge Requests
0
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김지훈
2016-11-12 13:03:45 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
869c6b8c91f339770ce54c0e983628ed8a9d7cb1
869c6b8c
1 parent
a8a0a7ad
Delete : no use part
this crawler doesn’t work.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
Server/routes/index.js
Server/routes/index.js
View file @
869c6b8
...
...
@@ -59,23 +59,5 @@ router.get('/', function(req, res, next) {
});
// 다른 요약기에 비해 얼마나 성능 향상이 있었는지 확인하기 위함.
router
.
get
(
'/read'
,
function
(
req
,
res
,
next
)
{
read
(
'http://news.naver.com/main/read.nhn?mode=LSD&mid=shm&sid1=104&sid2=232&oid=421&aid=0002379859'
,
function
(
err
,
article
,
meta
)
{
// Title
console
.
log
(
article
.
title
);
// Main Article
console
.
log
(
article
.
content
);
res
.
json
({
title
:
article
.
title
,
content
:
article
.
content
},
function
(){
// Close article to clean up jsdom and prevent leaks
article
.
close
();
});
});
});
module
.
exports
=
router
;
...
...
Please
register
or
login
to post a comment