Skip to content

Commit a72dd90

Browse files
committed
excel parser
1 parent 4d7d844 commit a72dd90

File tree

5 files changed

+129
-0
lines changed

5 files changed

+129
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
node_modules
3+
.DS_STORE

excel/data.xlsx

11 KB
Binary file not shown.

excel/excelParser.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const xlsx = require('xlsx');
2+
3+
const workbook = xlsx.readFile('./data.xlsx');
4+
5+
const ws = workbook.Sheets.영화목록;
6+
7+
const records = xlsx.utils.sheet_to_json(ws);
8+
9+
for(const [i, r] of records.entries()) {
10+
console.log(i, r.제목, r.링크);
11+
}

package-lock.json

+100
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "crawling",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"author": "",
10+
"license": "ISC",
11+
"dependencies": {
12+
"csv-parse": "^4.4.1",
13+
"xlsx": "^0.14.3"
14+
}
15+
}

0 commit comments

Comments
 (0)