Toggle navigation
Toggle navigation
This project
Loading...
Sign in
곽윤철
/
youtube-comment-seperator
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
곽교린
2022-06-03 15:20:52 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
da7865f83c09d10649ba4f1759b57036d2bccb33
da7865f8
1 parent
af33da18
Separate APIkeys from code to APIs.json
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
APIs.json
CommentLoadingTest.js
api키.txt
papago.js
APIs.json
0 → 100644
View file @
da7865f
{
"youtubeAPI"
:
""
,
//insert
your
youtube
API
key.
"papagoClientID"
:
""
,
//insert
your
papago
client
ID.
"papagoClientSecret"
:
""
//insert
your
papago
client
secret.
}
\ No newline at end of file
CommentLoadingTest.js
View file @
da7865f
...
...
@@ -7,7 +7,8 @@ var qs = require('querystring');
var
path
=
require
(
'path'
);
const
{
google
}
=
require
(
"googleapis"
);
const
service
=
google
.
youtube
(
'v3'
);
const
apiKey
=
'AIzaSyCjBrFKnBlGvxsfOD-qJP8nBkdEoqKRHu8'
;
//api키
const
apis
=
require
(
'./APIs.json'
);
const
apiKey
=
apis
.
youtubeAPI
;
//api키
let
videoNum
=
"TpPwI_Lo0YY"
;
//비디오 주소(예시)
var
videoLang
=
'all'
;
//설정 언어
const
serverIP
=
"http://localhost:3000"
//서버의 주소
...
...
api키.txt
deleted
100644 → 0
View file @
af33da1
AIzaSyCjBrFKnBlGvxsfOD-qJP8nBkdEoqKRHu8
\ No newline at end of file
papago.js
View file @
da7865f
var
client_id
=
'6hpmInU0TCrQIiiJwgJX'
;
var
client_secret
=
'jpYZbkj0_g'
;
const
apis
=
require
(
'./APIs.json'
);
var
client_id
=
apis
.
papagoClientID
;
var
client_secret
=
apis
.
papagoClientSecret
;
// var query = "언어를 감지할 문장을 입력하세요.";
// app.get('/detectLangs', function (req, res) {
// var api_url = 'https://openapi.naver.com/v1/papago/detectLangs';
...
...
Please
register
or
login
to post a comment