Toggle navigation
Toggle navigation
This project
Loading...
Sign in
유승근
/
Computer-part-Recommand
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Network
Create a new issue
Commits
Issue Boards
Authored by
Yuseunggeun
2020-06-24 23:18:58 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2c9404353f6a6fcd0a3c8e984f5e3837ff510af6
2c940435
1 parent
f4fe0302
크롤링 사이트 병경
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
routes/index.js
test.json
routes/index.js
View file @
2c94043
...
...
@@ -8,7 +8,7 @@ var router = express.Router();
var
client_id
=
'HH0lbvfI3QtlyR7e9tkw'
;
var
client_secret
=
'mvPTEsNs7L'
;
var
url
=
"https://www.videocardbenchmark.net/
gpu_value.html#all-time-value
"
;
var
url
=
"https://www.videocardbenchmark.net/
common_gpus.html
"
;
//var Graphic_card = [];
//var Price = [];
var
exhange_rate
=
0
;
...
...
@@ -31,7 +31,7 @@ request(url, function(error, response, html){ //크롤링
info
.
name
=
data
.
find
(
"span.prdname"
).
text
();
//물품 이름
info
.
price
=
Number
(
data
.
find
(
"span.price-neww"
).
text
().
split
(
','
).
join
(
''
));
//물품 가격
info
.
link
=
data
.
attr
(
"href"
);
//물품 정보링크
info
.
benchmark
=
Number
(
data
.
find
(
"span.
mark-neww"
).
text
(
));
//물품 성능
info
.
benchmark
=
Number
(
data
.
find
(
"span.
count"
).
text
().
split
(
','
).
join
(
''
));
//물품 성능
Graphic_card_info
.
push
(
info
);
i
++
if
(
i
>=
count
){
//50개만 저장
...
...
test.json
View file @
2c94043
[{
"name"
:
"GeForce GTX 1650 SUPER"
,
"price"
:
159.99
,
"link"
:
"gpu.php?gpu=GeForce+GTX+1650+SUPER&id=4167"
,
"benchmark"
:
9889
},{
"name"
:
"Radeon RX 570"
,
"price"
:
124.99
,
"link"
:
"gpu.php?gpu=Radeon+RX+570&id=3741"
,
"benchmark"
:
6967
},{
"name"
:
"GeForce GTX 1660 SUPER"
,
"price"
:
229.99
,
"link"
:
"gpu.php?gpu=GeForce+GTX+1660+SUPER&id=4159"
,
"benchmark"
:
12704
},{
"name"
:
"GeForce GTX 1660"
,
"price"
:
209.99
,
"link"
:
"gpu.php?gpu=GeForce+GTX+1660&id=4062"
,
"benchmark"
:
11371
},{
"name"
:
"Radeon RX 580"
,
"price"
:
164.99
,
"link"
:
"gpu.php?gpu=Radeon+RX+580&id=3736"
,
"benchmark"
:
8723
},{
"name"
:
"GeForce GTX 1650"
,
"price"
:
149.99
,
"link"
:
"gpu.php?gpu=GeForce+GTX+1650&id=4078"
,
"benchmark"
:
7894
},{
"name"
:
"Radeon RX Vega 56"
,
"price"
:
259.99
,
"link"
:
"gpu.php?gpu=Radeon+RX+Vega+56&id=3821"
,
"benchmark"
:
13281
},{
"name"
:
"Radeon RX 5500 XT"
,
"price"
:
179.99
,
"link"
:
"gpu.php?gpu=Radeon+RX+5500+XT&id=4174"
,
"benchmark"
:
8992
},{
"name"
:
"Radeon RX 5600 XT"
,
"price"
:
269.99
,
"link"
:
"gpu.php?gpu=Radeon+RX+5600+XT&id=4186"
,
"benchmark"
:
13009
},{
"name"
:
"Radeon RX 5700"
,
"price"
:
309.99
,
"link"
:
"gpu.php?gpu=Radeon+RX+5700&id=4107"
,
"benchmark"
:
14201
},{
"name"
:
"GeForce GTX 1660 Ti"
,
"price"
:
279.99
,
"link"
:
"gpu.php?gpu=GeForce+GTX+1660+Ti&id=4045"
,
"benchmark"
:
12802
},{
"name"
:
"GeForce GTX 1050 Ti"
,
"price"
:
144.03
,
"link"
:
"gpu.php?gpu=GeForce+GTX+1050+Ti&id=3595"
,
"benchmark"
:
6431
},{
"name"
:
"GeForce RTX 2060"
,
"price"
:
329.99
,
"link"
:
"gpu.php?gpu=GeForce+RTX+2060&id=4037"
,
"benchmark"
:
14731
},{
"name"
:
"Radeon RX 5700 XT"
,
"price"
:
379.99
,
"link"
:
"gpu.php?gpu=Radeon+RX+5700+XT&id=4111"
,
"benchmark"
:
16729
},{
"name"
:
"GeForce RTX 2060 SUPER"
,
"price"
:
399.99
,
"link"
:
"gpu.php?gpu=GeForce+RTX+2060+SUPER&id=4117"
,
"benchmark"
:
16318
},{
"name"
:
"GeForce GTX 1060 3GB"
,
"price"
:
235.99
,
"link"
:
"gpu.php?gpu=GeForce+GTX+1060+3GB&id=3566"
,
"benchmark"
:
9598
},{
"name"
:
"GeForce RTX 2070"
,
"price"
:
419.99
,
"link"
:
"gpu.php?gpu=GeForce+RTX+2070&id=4001"
,
"benchmark"
:
16245
},{
"name"
:
"GeForce GTX 1050"
,
"price"
:
159.99
,
"link"
:
"gpu.php?gpu=GeForce+GTX+1050&id=3596"
,
"benchmark"
:
5701
},{
"name"
:
"GeForce RTX 2070 SUPER"
,
"price"
:
509.99
,
"link"
:
"gpu.php?gpu=GeForce+RTX+2070+SUPER&id=4116"
,
"benchmark"
:
18095
},{
"name"
:
"GeForce GT 1030"
,
"price"
:
74.99
,
"link"
:
"gpu.php?gpu=GeForce+GT+1030&id=3757"
,
"benchmark"
:
2617
},{
"name"
:
"GeForce RTX 2080"
,
"price"
:
629.99
,
"link"
:
"gpu.php?gpu=GeForce+RTX+2080&id=3989"
,
"benchmark"
:
18854
},{
"name"
:
"Radeon RX 550"
,
"price"
:
84.99
,
"link"
:
"gpu.php?gpu=Radeon+RX+550&id=3761"
,
"benchmark"
:
2434
},{
"name"
:
"Radeon RX 560"
,
"price"
:
129.99
,
"link"
:
"gpu.php?gpu=Radeon+RX+560&id=3708"
,
"benchmark"
:
3632
},{
"name"
:
"GeForce RTX 2080 SUPER"
,
"price"
:
709.99
,
"link"
:
"gpu.php?gpu=GeForce+RTX+2080+SUPER&id=4123"
,
"benchmark"
:
19224
},{
"name"
:
"GeForce GTX 1070 Ti"
,
"price"
:
549.99
,
"link"
:
"gpu.php?gpu=GeForce+GTX+1070+Ti&id=3842"
,
"benchmark"
:
13915
},{
"name"
:
"Quadro P620"
,
"price"
:
150.93
,
"link"
:
"gpu.php?gpu=Quadro+P620&id=3954"
,
"benchmark"
:
3717
},{
"name"
:
"Quadro P2200"
,
"price"
:
402.54
,
"link"
:
"gpu.php?gpu=Quadro+P2200&id=4133"
,
"benchmark"
:
9529
},{
"name"
:
"Radeon Pro W5500"
,
"price"
:
399.99
,
"link"
:
"gpu.php?gpu=Radeon+Pro+W5500&id=4192"
,
"benchmark"
:
9430
},{
"name"
:
"GeForce RTX 2080 Ti"
,
"price"
:
1159.99
,
"link"
:
"gpu.php?gpu=GeForce+RTX+2080+Ti&id=3991"
,
"benchmark"
:
21657
},{
"name"
:
"Radeon Pro W5700"
,
"price"
:
799.99
,
"link"
:
"gpu.php?gpu=Radeon+Pro+W5700&id=4182"
,
"benchmark"
:
14334
},{
"name"
:
"GeForce GT 710"
,
"price"
:
35.99
,
"link"
:
"gpu.php?gpu=GeForce+GT+710&id=2910"
,
"benchmark"
:
620
},{
"name"
:
"Quadro P2000"
,
"price"
:
420.39
,
"link"
:
"gpu.php?gpu=Quadro+P2000&id=3712"
,
"benchmark"
:
7232
},{
"name"
:
"Radeon Pro WX 5100"
,
"price"
:
334.99
,
"link"
:
"gpu.php?gpu=Radeon+Pro+WX+5100&id=3619"
,
"benchmark"
:
5327
},{
"name"
:
"Radeon Pro WX 4100"
,
"price"
:
249.99
,
"link"
:
"gpu.php?gpu=Radeon+Pro+WX+4100&id=3694"
,
"benchmark"
:
3785
},{
"name"
:
"Quadro P400"
,
"price"
:
113.59
,
"link"
:
"gpu.php?gpu=Quadro+P400&id=3807"
,
"benchmark"
:
1673
},{
"name"
:
"Radeon Pro WX 7100"
,
"price"
:
499.99
,
"link"
:
"gpu.php?gpu=Radeon+Pro+WX+7100&id=3611"
,
"benchmark"
:
7347
},{
"name"
:
"Quadro P4000"
,
"price"
:
789.99
,
"link"
:
"gpu.php?gpu=Quadro+P4000&id=3719"
,
"benchmark"
:
11369
},{
"name"
:
"Radeon Pro WX 8200"
,
"price"
:
969.99
,
"link"
:
"gpu.php?gpu=Radeon+Pro+WX+8200&id=3976"
,
"benchmark"
:
13903
},{
"name"
:
"Quadro P1000"
,
"price"
:
300.99
,
"link"
:
"gpu.php?gpu=Quadro+P1000&id=3727"
,
"benchmark"
:
4213
},{
"name"
:
"Radeon Pro WX 3200"
,
"price"
:
189.99
,
"link"
:
"gpu.php?gpu=Radeon+Pro+WX+3200&id=4065"
,
"benchmark"
:
2591
},{
"name"
:
"Radeon R7 430"
,
"price"
:
104.06
,
"link"
:
"gpu.php?gpu=Radeon+R7+430&id=3751"
,
"benchmark"
:
1284
},{
"name"
:
"Radeon HD 7750"
,
"price"
:
144.99
,
"link"
:
"gpu.php?gpu=Radeon+HD+7750&id=321"
,
"benchmark"
:
1682
},{
"name"
:
"GeForce GT 730"
,
"price"
:
69.98
,
"link"
:
"gpu.php?gpu=GeForce+GT+730&id=2906"
,
"benchmark"
:
807
},{
"name"
:
"TITAN RTX"
,
"price"
:
2499.99
,
"link"
:
"gpu.php?gpu=TITAN+RTX&id=4029"
,
"benchmark"
:
18213
},{
"name"
:
"Quadro K5200"
,
"price"
:
790.96
,
"link"
:
"gpu.php?gpu=Quadro+K5200&id=2941"
,
"benchmark"
:
5688
},{
"name"
:
"Quadro P5000"
,
"price"
:
1714.37
,
"link"
:
"gpu.php?gpu=Quadro+P5000&id=3607"
,
"benchmark"
:
12040
},{
"name"
:
"Quadro K2000D"
,
"price"
:
415.81
,
"link"
:
"gpu.php?gpu=Quadro+K2000D&id=2497"
,
"benchmark"
:
1656
},{
"name"
:
"Radeon HD 6450"
,
"price"
:
52.99
,
"link"
:
"gpu.php?gpu=Radeon+HD+6450&id=267"
,
"benchmark"
:
191
},{
"name"
:
"GeForce 8400 GS"
,
"price"
:
44.64
,
"link"
:
"gpu.php?gpu=GeForce+8400+GS&id=73"
,
"benchmark"
:
117
},{
"name"
:
"Radeon HD 5570"
,
"price"
:
169.99
,
"link"
:
"gpu.php?gpu=Radeon+HD+5570&id=80"
,
"benchmark"
:
433
}]
\ No newline at end of file
[{
"name"
:
"GeForce RTX 2080 Ti"
,
"price"
:
1159.99
,
"link"
:
"gpu.php?gpu=GeForce+RTX+2080+Ti&id=3991"
,
"benchmark"
:
21657
},{
"name"
:
"GeForce RTX 2080 SUPER"
,
"price"
:
709.99
,
"link"
:
"gpu.php?gpu=GeForce+RTX+2080+SUPER&id=4123"
,
"benchmark"
:
19224
},{
"name"
:
"GeForce RTX 2080"
,
"price"
:
629.99
,
"link"
:
"gpu.php?gpu=GeForce+RTX+2080&id=3989"
,
"benchmark"
:
18854
},{
"name"
:
"GeForce RTX 2070 SUPER"
,
"price"
:
509.99
,
"link"
:
"gpu.php?gpu=GeForce+RTX+2070+SUPER&id=4116"
,
"benchmark"
:
18095
},{
"name"
:
"GeForce GTX 1080 Ti"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=GeForce+GTX+1080+Ti&id=3699"
,
"benchmark"
:
17384
},{
"name"
:
"Radeon RX 5700 XT"
,
"price"
:
379.99
,
"link"
:
"gpu.php?gpu=Radeon+RX+5700+XT&id=4111"
,
"benchmark"
:
16729
},{
"name"
:
"GeForce RTX 2060 SUPER"
,
"price"
:
399.99
,
"link"
:
"gpu.php?gpu=GeForce+RTX+2060+SUPER&id=4117"
,
"benchmark"
:
16318
},{
"name"
:
"GeForce RTX 2070"
,
"price"
:
419.99
,
"link"
:
"gpu.php?gpu=GeForce+RTX+2070&id=4001"
,
"benchmark"
:
16245
},{
"name"
:
"GeForce RTX 2060"
,
"price"
:
329.99
,
"link"
:
"gpu.php?gpu=GeForce+RTX+2060&id=4037"
,
"benchmark"
:
14731
},{
"name"
:
"GeForce GTX 1080"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=GeForce+GTX+1080&id=3502"
,
"benchmark"
:
14690
},{
"name"
:
"GeForce GTX 1070 Ti"
,
"price"
:
549.99
,
"link"
:
"gpu.php?gpu=GeForce+GTX+1070+Ti&id=3842"
,
"benchmark"
:
13914
},{
"name"
:
"NVIDIA TITAN X"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=NVIDIA+TITAN+X&id=3554"
,
"benchmark"
:
13681
},{
"name"
:
"GeForce GTX 1070"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=GeForce+GTX+1070&id=3521"
,
"benchmark"
:
13286
},{
"name"
:
"GeForce GTX 1660 Ti"
,
"price"
:
279.99
,
"link"
:
"gpu.php?gpu=GeForce+GTX+1660+Ti&id=4045"
,
"benchmark"
:
12802
},{
"name"
:
"GeForce GTX 1660 SUPER"
,
"price"
:
229.99
,
"link"
:
"gpu.php?gpu=GeForce+GTX+1660+SUPER&id=4159"
,
"benchmark"
:
12704
},{
"name"
:
"GeForce GTX 1660"
,
"price"
:
209.99
,
"link"
:
"gpu.php?gpu=GeForce+GTX+1660&id=4062"
,
"benchmark"
:
11371
},{
"name"
:
"GeForce GTX 1060"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=GeForce+GTX+1060&id=3548"
,
"benchmark"
:
10239
},{
"name"
:
"GeForce GTX 1060 3GB"
,
"price"
:
235.99
,
"link"
:
"gpu.php?gpu=GeForce+GTX+1060+3GB&id=3566"
,
"benchmark"
:
9598
},{
"name"
:
"GeForce GTX 970"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=GeForce+GTX+970&id=2954"
,
"benchmark"
:
9567
},{
"name"
:
"Radeon Pro Duo"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=Radeon+Pro+Duo&id=3575"
,
"benchmark"
:
9433
},{
"name"
:
"Radeon RX 580"
,
"price"
:
164.99
,
"link"
:
"gpu.php?gpu=Radeon+RX+580&id=3736"
,
"benchmark"
:
8724
},{
"name"
:
"Radeon RX 470"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=Radeon+RX+470&id=3558"
,
"benchmark"
:
7907
},{
"name"
:
"GeForce GTX 1650 (Mobile)"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=GeForce+GTX+1650+%28Mobile%29&id=4090"
,
"benchmark"
:
7002
},{
"name"
:
"GeForce GTX 1050 Ti"
,
"price"
:
144.03
,
"link"
:
"gpu.php?gpu=GeForce+GTX+1050+Ti&id=3595"
,
"benchmark"
:
6431
},{
"name"
:
"GeForce GTX 960"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=GeForce+GTX+960&id=3114"
,
"benchmark"
:
5927
},{
"name"
:
"GeForce GTX 1050"
,
"price"
:
159.99
,
"link"
:
"gpu.php?gpu=GeForce+GTX+1050&id=3596"
,
"benchmark"
:
5701
},{
"name"
:
"Radeon R9 285 / 380"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=Radeon+R9+285+%2F+380&id=3116"
,
"benchmark"
:
5548
},{
"name"
:
"Radeon HD 7970 / R9 280X"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=Radeon+HD+7970+%2F+R9+280X&id=51"
,
"benchmark"
:
5247
},{
"name"
:
"Radeon HD 7950 / R9 280"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=Radeon+HD+7950+%2F+R9+280&id=325"
,
"benchmark"
:
4766
},{
"name"
:
"Radeon HD 7870 XT"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=Radeon+HD+7870+XT&id=2557"
,
"benchmark"
:
4470
},{
"name"
:
"GeForce GTX 1050 (Mobile)"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=GeForce+GTX+1050+%28Mobile%29&id=4088"
,
"benchmark"
:
4464
},{
"name"
:
"Radeon R9 270 / R7 370"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=Radeon+R9+270+%2F+R7+370&id=2766"
,
"benchmark"
:
4258
},{
"name"
:
"GeForce GTX 750 Ti"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=GeForce+GTX+750+Ti&id=2815"
,
"benchmark"
:
3864
},{
"name"
:
"Intel UHD 630"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=Intel+UHD+630&id=3826"
,
"benchmark"
:
1551
},{
"name"
:
"Radeon Vega 8"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=Radeon+Vega+8&id=3895"
,
"benchmark"
:
1546
},{
"name"
:
"Intel UHD Graphics 620"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=Intel+UHD+Graphics+620&id=3805"
,
"benchmark"
:
1057
},{
"name"
:
"Radeon HD 6700M"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=Radeon+HD+6700M&id=280"
,
"benchmark"
:
1015
},{
"name"
:
"Intel HD Graphics 620"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=Intel+HD+Graphics+620&id=3592"
,
"benchmark"
:
922
},{
"name"
:
"Intel HD 520"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=Intel+HD+520&id=3255"
,
"benchmark"
:
852
},{
"name"
:
"Intel HD 4600"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=Intel+HD+4600&id=2451"
,
"benchmark"
:
649
},{
"name"
:
"Mobility Radeon HD 4650"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=Mobility+Radeon+HD+4650&id=504"
,
"benchmark"
:
401
},{
"name"
:
"Intel HD 4000"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=Intel+HD+4000&id=2"
,
"benchmark"
:
325
},{
"name"
:
"GeForce 8600 GTS"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=GeForce+8600+GTS&id=118"
,
"benchmark"
:
284
},{
"name"
:
"Intel HD 3000"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=Intel+HD+3000&id=26"
,
"benchmark"
:
257
},{
"name"
:
"Mobility Radeon HD 5470"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=Mobility+Radeon+HD+5470&id=58"
,
"benchmark"
:
236
},{
"name"
:
"Radeon HD 4250"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=Radeon+HD+4250&id=590"
,
"benchmark"
:
123
},{
"name"
:
"Radeon HD 4200"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=Radeon+HD+4200&id=25"
,
"benchmark"
:
112
},{
"name"
:
"Radeon 3000"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=Radeon+3000&id=76"
,
"benchmark"
:
98
},{
"name"
:
"Radeon HD 3200"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=Radeon+HD+3200&id=46"
,
"benchmark"
:
82
},{
"name"
:
"GeForce 8400M GS"
,
"price"
:
null
,
"link"
:
"gpu.php?gpu=GeForce+8400M+GS&id=1266"
,
"benchmark"
:
82
}]
\ No newline at end of file
...
...
Please
register
or
login
to post a comment