update
This commit is contained in:
80
netease_music/auto - comment id expand.js
Normal file
80
netease_music/auto - comment id expand.js
Normal file
@@ -0,0 +1,80 @@
|
||||
let a = `1990000000
|
||||
1980000000
|
||||
1970000000
|
||||
1960000000
|
||||
1950000000
|
||||
1940000000
|
||||
1930000000
|
||||
1920000000
|
||||
1910000000
|
||||
1900000000
|
||||
1890000000
|
||||
1880000000
|
||||
1870000000
|
||||
1860000000
|
||||
1850000000
|
||||
1840000000
|
||||
1830000000
|
||||
1820000000
|
||||
1810000000
|
||||
1800000000
|
||||
1500000000
|
||||
1490000000
|
||||
1480000000
|
||||
1470000000
|
||||
1460000000
|
||||
1450000000
|
||||
1440000000
|
||||
1430000000
|
||||
1420000000
|
||||
1410000000
|
||||
1400000000
|
||||
1390000000
|
||||
1380000000
|
||||
1370000000
|
||||
1360000000
|
||||
1350000000
|
||||
1340000000
|
||||
1330000000
|
||||
1320000000
|
||||
1310000000
|
||||
1300000000
|
||||
1290000000
|
||||
860000000
|
||||
570000000
|
||||
560000000
|
||||
550000000
|
||||
540000000
|
||||
530000000
|
||||
520000000
|
||||
510000000
|
||||
500000000
|
||||
490000000
|
||||
480000000
|
||||
470000000
|
||||
460000000
|
||||
450000000
|
||||
440000000
|
||||
430000000
|
||||
420000000
|
||||
410000000
|
||||
400000000
|
||||
390000000
|
||||
40000000
|
||||
30000000
|
||||
20000000
|
||||
10000000
|
||||
0`
|
||||
|
||||
const splitCount = 1000
|
||||
const step = 10000000 / splitCount
|
||||
|
||||
let b = []
|
||||
a.split('\n')
|
||||
.map(i => Number(i))
|
||||
.forEach(n => {
|
||||
for (let i = splitCount; i > 0; i--) {
|
||||
b.push(Number(n) + (i - 1) * step)
|
||||
}
|
||||
});
|
||||
console.log(b.join('\n'))
|
File diff suppressed because it is too large
Load Diff
@@ -1,232 +1,43 @@
|
||||
|
||||
cd tools/netease_music/
|
||||
# 服务器正在跑
|
||||
# # node index --utils lyric --min 1940000000 --limit 10000 &
|
||||
|
||||
node index --utils lyric --min 1930000000 --max 1940000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1930000000 --max 1937000000 --limit 10000 --order desc &
|
||||
|
||||
node index --utils lyric --min 1920000000 --max 1930000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1920000000 --max 1927000000 --limit 10000 --order desc &
|
||||
|
||||
node index --utils lyric --min 1910000000 --max 1920000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1910000000 --max 1917000000 --limit 10000 --order desc &
|
||||
|
||||
node index --utils lyric --min 1900000000 --max 1910000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1900000000 --max 1907000000 --limit 10000 --order desc &
|
||||
|
||||
node index --utils lyric --min 1890000000 --max 1900000000 --limit 10000 &
|
||||
|
||||
node index --utils lyric --min 1880000000 --max 1890000000 --limit 10000 &
|
||||
|
||||
node index --utils lyric --min 1870000000 --max 1880000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1870000000 --max 1875000000 --limit 10000 --order desc &
|
||||
|
||||
node index --utils lyric --min 1860000000 --max 1870000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1860000000 --max 1865000000 --limit 10000 --order desc &
|
||||
|
||||
# node index --utils lyric --min 1940000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1930000000 --max 1940000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1920000000 --max 1930000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1910000000 --max 1920000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1900000000 --max 1910000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1890000000 --max 1900000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1880000000 --max 1890000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1870000000 --max 1880000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1860000000 --max 1870000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1850000000 --max 1860000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1840000000 --max 1850000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1830000000 --max 1840000000 --limit 10000 &
|
||||
|
||||
node index --utils lyric --min 1820000000 --max 1830000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1820000000 --max 1827000000 --limit 10000 --order desc &
|
||||
|
||||
node index --utils lyric --min 1810000000 --max 1820000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1810000000 --max 1817000000 --limit 10000 --order desc &
|
||||
|
||||
node index --utils lyric --min 1800000000 --max 1810000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1800000000 --max 1807000000 --limit 10000 --order desc &
|
||||
|
||||
# node index --utils lyric --min 1820000000 --max 1830000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1810000000 --max 1820000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1800000000 --max 1810000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1500000000 --max 1800000000 --limit 10000 &
|
||||
|
||||
node index --utils lyric --min 1490000000 --max 1500000000 --limit 10000 &
|
||||
|
||||
node index --utils lyric --min 1480000000 --max 1490000000 --limit 10000 &
|
||||
|
||||
node index --utils lyric --min 1470000000 --max 1480000000 --limit 10000 &
|
||||
|
||||
node index --utils lyric --min 1460000000 --max 1470000000 --limit 10000 &
|
||||
|
||||
node index --utils lyric --min 1450000000 --max 1460000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1450000000 --max 1455000000 --limit 10000 --order desc &
|
||||
|
||||
node index --utils lyric --min 1440000000 --max 1450000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1440000000 --max 1445000000 --limit 10000 --order desc &
|
||||
|
||||
node index --utils lyric --min 1430000000 --max 1440000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1430000000 --max 1435000000 --limit 10000 --order desc &
|
||||
|
||||
node index --utils lyric --min 1420000000 --max 1430000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1420000000 --max 1427000000 --limit 10000 --order desc &
|
||||
|
||||
node index --utils lyric --min 1410000000 --max 1420000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1410000000 --max 1417000000 --limit 10000 --order desc &
|
||||
|
||||
node index --utils lyric --min 1400000000 --max 1410000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1400000000 --max 1405000000 --limit 10000 --order desc &
|
||||
|
||||
node index --utils lyric --min 1390000000 --max 1400000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1390000000 --max 1395000000 --limit 10000 --order desc &
|
||||
|
||||
# node index --utils lyric --min 1490000000 --max 1500000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1480000000 --max 1490000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1470000000 --max 1480000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1460000000 --max 1470000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1450000000 --max 1460000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1440000000 --max 1450000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1430000000 --max 1440000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1420000000 --max 1430000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1410000000 --max 1420000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1400000000 --max 1410000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1390000000 --max 1400000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1380000000 --max 1390000000 --limit 10000 &
|
||||
|
||||
node index --utils lyric --min 1370000000 --max 1380000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1370000000 --max 1377000000 --limit 10000 --order desc &
|
||||
|
||||
node index --utils lyric --min 1360000000 --max 1370000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1360000000 --max 1367000000 --limit 10000 --order desc &
|
||||
|
||||
node index --utils lyric --min 1350000000 --max 1360000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1350000000 --max 1357000000 --limit 10000 --order desc &
|
||||
|
||||
node index --utils lyric --min 1340000000 --max 1350000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1340000000 --max 1347000000 --limit 10000 --order desc &
|
||||
|
||||
node index --utils lyric --min 1330000000 --max 1340000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1330000000 --max 1337000000 --limit 10000 --order desc &
|
||||
|
||||
node index --utils lyric --min 1320000000 --max 1330000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1320000000 --max 1327000000 --limit 10000 --order desc &
|
||||
|
||||
node index --utils lyric --min 1310000000 --max 1320000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1310000000 --max 1317000000 --limit 10000 --order desc &
|
||||
|
||||
node index --utils lyric --min 1300000000 --max 1310000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1300000000 --max 1305000000 --limit 10000 --order desc &
|
||||
|
||||
# 本地正在跑
|
||||
# node index --utils lyric --min 570000000 --max 1300000000 --limit 10000
|
||||
start cmd /k "node index --utils lyric --min 560000000 --max 570000000 --limit 10000"
|
||||
start cmd /k "node index --utils lyric --min 550000000 --max 560000000 --limit 10000"
|
||||
start cmd /k "node index --utils lyric --min 540000000 --max 550000000 --limit 10000"
|
||||
# node index --utils lyric --min 530000000 --max 540000000 --limit 10000
|
||||
|
||||
|
||||
|
||||
# 本地正在跑
|
||||
start cmd /k "node index --utils lyric --min 560000000 --max 570000000 --limit 10000 --order desc"
|
||||
|
||||
# 服务器正在跑
|
||||
node index --utils lyric --min 1937000000 --max 1940000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1927000000 --max 1930000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1917000000 --max 1920000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1907000000 --max 1910000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1897000000 --max 1900000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1887000000 --max 1890000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1877000000 --max 1880000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1867000000 --max 1870000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1827000000 --max 1830000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1817000000 --max 1820000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1807000000 --max 1810000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1497000000 --max 1500000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1487000000 --max 1490000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1477000000 --max 1480000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1467000000 --max 1470000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1457000000 --max 1460000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1447000000 --max 1450000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1437000000 --max 1440000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1427000000 --max 1430000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1417000000 --max 1420000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1407000000 --max 1410000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1397000000 --max 1400000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1377000000 --max 1380000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1367000000 --max 1370000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1357000000 --max 1360000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1347000000 --max 1350000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1337000000 --max 1340000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1327000000 --max 1330000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1317000000 --max 1320000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1307000000 --max 1310000000 --limit 10000 --order desc &
|
||||
# 右边
|
||||
# node index --utils lyric --min 1937000000 --max 1940000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1927000000 --max 1930000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1917000000 --max 1920000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1907000000 --max 1910000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1897000000 --max 1900000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1887000000 --max 1890000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1877000000 --max 1880000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1867000000 --max 1870000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1827000000 --max 1830000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1817000000 --max 1820000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1807000000 --max 1810000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1497000000 --max 1500000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1487000000 --max 1490000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1477000000 --max 1480000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1467000000 --max 1470000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1457000000 --max 1460000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1447000000 --max 1450000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1437000000 --max 1440000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1427000000 --max 1430000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1417000000 --max 1420000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1407000000 --max 1410000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1397000000 --max 1400000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1377000000 --max 1380000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1367000000 --max 1370000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1357000000 --max 1360000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1347000000 --max 1350000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1337000000 --max 1340000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1327000000 --max 1330000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1317000000 --max 1320000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1307000000 --max 1310000000 --limit 10000 --order asc &
|
||||
|
||||
# 服务器正在跑
|
||||
node index --utils lyric --min 1895000000 --max 1897000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1885000000 --max 1887000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1875000000 --max 1877000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1865000000 --max 1867000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1495000000 --max 1497000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1485000000 --max 1487000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1475000000 --max 1477000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1465000000 --max 1467000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1455000000 --max 1457000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1445000000 --max 1447000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1435000000 --max 1437000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1405000000 --max 1407000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1395000000 --max 1397000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1305000000 --max 1307000000 --limit 10000 --order desc &
|
||||
# 右边
|
||||
# node index --utils lyric --min 1895000000 --max 1897000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1885000000 --max 1887000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1875000000 --max 1877000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1865000000 --max 1867000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1495000000 --max 1497000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1485000000 --max 1487000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1475000000 --max 1477000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1465000000 --max 1467000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1455000000 --max 1457000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1445000000 --max 1447000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1435000000 --max 1437000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1405000000 --max 1407000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1395000000 --max 1397000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1305000000 --max 1307000000 --limit 10000 --order asc &
|
||||
|
||||
# 服务器正在跑
|
||||
node index --utils lyric --min 1890000000 --max 1895000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1880000000 --max 1885000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1490000000 --max 1495000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1480000000 --max 1485000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1470000000 --max 1475000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1460000000 --max 1465000000 --limit 10000 --order desc &
|
||||
# 右边
|
||||
# node index --utils lyric --min 1890000000 --max 1895000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1880000000 --max 1885000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1490000000 --max 1495000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1480000000 --max 1485000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1470000000 --max 1475000000 --limit 10000 --order asc &
|
||||
# node index --utils lyric --min 1460000000 --max 1465000000 --limit 10000 --order asc &
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# 手机正在跑
|
||||
cd tools/netease_music/
|
||||
# node index --utils lyric --min 1892000000 --max 1893000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1882000000 --max 1883000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1492000000 --max 1493000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1482000000 --max 1483000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1472000000 --max 1473000000 --limit 10000 --order desc &
|
||||
node index --utils lyric --min 1462000000 --max 1463000000 --limit 10000 --order desc &
|
||||
# node index --utils lyric --min 1370000000 --max 1380000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1360000000 --max 1370000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1350000000 --max 1360000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1340000000 --max 1350000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1330000000 --max 1340000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1320000000 --max 1330000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1310000000 --max 1320000000 --limit 10000 &
|
||||
# node index --utils lyric --min 1300000000 --max 1310000000 --limit 10000 &
|
||||
# node index --utils lyric --min 570000000 --max 1300000000 --limit 10000 &
|
||||
# node index --utils lyric --min 560000000 --max 570000000 --limit 10000 &
|
||||
# node index --utils lyric --min 550000000 --max 560000000 --limit 10000 &
|
||||
# node index --utils lyric --min 540000000 --max 550000000 --limit 10000 &
|
||||
# node index --utils lyric --min 530000000 --max 540000000 --limit 10000 &
|
||||
|
@@ -74,7 +74,9 @@ async function fetch({ songId }) {
|
||||
|
||||
try {
|
||||
// console.log(progress, queryParams);
|
||||
// console.log("await comment_music")
|
||||
var commentResult = await comment_music(queryParams);
|
||||
// console.log("finish await comment_music")
|
||||
// fs.writeFileSync(path.join(__dirname, "../../temp", `comment-${songId}-${pageCount}.json`), JSON.stringify(commentResult));
|
||||
} catch (errors) {
|
||||
console.error("error", errors);
|
||||
@@ -97,7 +99,7 @@ async function fetch({ songId }) {
|
||||
// console.log(commentInfoList);
|
||||
// console.log(userInfoList);
|
||||
|
||||
// console.log("dataManager.comment.insertCollection & dataManager.user.insertCollection")
|
||||
console.log("dataManager.comment.insertCollection & dataManager.user.insertCollection")
|
||||
let p1 = dataManager.comment.insertCollection(commentInfoList.map(commentInfo => [
|
||||
commentInfo.comment_id,
|
||||
commentInfo.parent_comment_id,
|
||||
@@ -149,10 +151,10 @@ async function fetch({ songId }) {
|
||||
current_status: progress.currentStatus,
|
||||
total: progress.total,
|
||||
};
|
||||
// console.log("dataManager.comment_progress.update")
|
||||
console.log("dataManager.comment_progress.update")
|
||||
let p3 = dataManager.comment_progress.update(commentProgressInfo, songId);
|
||||
// console.log("UPDATE comment_progress");
|
||||
await p3
|
||||
// console.log("UPDATE comment_progress");
|
||||
|
||||
// console.log("sleepUtils.sleep")
|
||||
// await sleepUtils.sleep(global.sleepTime);
|
||||
|
@@ -28,8 +28,16 @@ async function fetchTop({ args = {} }) {
|
||||
let hasMore = true;
|
||||
while (hasMore) {
|
||||
try {
|
||||
// var result = await top_playlist({ id: 1 });
|
||||
var result = await top_playlist_highquality({ id: 1 });
|
||||
// https://neteasecloudmusicapi-docs.4everland.app/#/?id=%e6%ad%8c%e5%8d%95-%e7%bd%91%e5%8f%8b%e7%b2%be%e9%80%89%e7%a2%9f-
|
||||
var result = await top_playlist({ id: 2 });
|
||||
|
||||
// https://neteasecloudmusicapi-docs.4everland.app/#/?id=%e8%8e%b7%e5%8f%96%e7%b2%be%e5%93%81%e6%ad%8c%e5%8d%95
|
||||
// var result = await top_playlist_highquality({});
|
||||
|
||||
// 调用此接口,传入歌单 id 可获取相关歌单
|
||||
// https://neteasecloudmusicapi-docs.4everland.app/#/?id=%e7%9b%b8%e5%85%b3%e6%ad%8c%e5%8d%95%e6%8e%a8%e8%8d%90
|
||||
var result = await related_playlist({ id: 809945533 });
|
||||
|
||||
// fs.writeFileSync(path.join(__dirname, "../../temp", `test.json`), JSON.stringify(result.body));
|
||||
} catch (errors) {
|
||||
console.error("error", errors);
|
||||
@@ -47,7 +55,7 @@ async function fetchTop({ args = {} }) {
|
||||
await global.checkIsExit();
|
||||
const playlist = playlists[i];
|
||||
const playlistId = playlist.id;
|
||||
console.log(`${i + 1}/${playlists.length} | playlist: ${playlistId} | limit: ${limit}, page: ${page}`);
|
||||
console.log(`${Number(i) + 1}/${playlists.length} | playlist: ${playlistId} | limit: ${limit}, page: ${page}`);
|
||||
try {
|
||||
await oldPlaylistUtils.fetch({ playlistId: playlist.id })
|
||||
} catch (err) {
|
||||
@@ -55,6 +63,8 @@ async function fetchTop({ args = {} }) {
|
||||
}
|
||||
// await sleepUtils.sleep(global.sleepTime);
|
||||
}
|
||||
|
||||
// 更新 is_fetched_related_playlist 字段
|
||||
}
|
||||
}
|
||||
|
||||
|
40
netease_music/打印SQL.js
Normal file
40
netease_music/打印SQL.js
Normal file
@@ -0,0 +1,40 @@
|
||||
|
||||
// const mysql = require('mysql');
|
||||
// await new Promise(function (resolve, reject) {
|
||||
// //通过MySQL中方法创建连接对象
|
||||
// var connection = mysql.createConnection({
|
||||
// "charset": "utf8mb4",
|
||||
// "host": "localhost",
|
||||
// "user": "root",
|
||||
// "password": "123456",
|
||||
// "port": 3306,
|
||||
// "database": ""
|
||||
// });
|
||||
// //开始连接
|
||||
// connection.connect();
|
||||
// var sql = `
|
||||
// INSERT INTO comment ( comment_id, parent_comment_id, user_id, song_id, content, time, like_count, comment_type ) VALUES ?
|
||||
// ON DUPLICATE KEY UPDATE content = VALUES(content), like_count = VALUES(like_count), comment_type = GREATEST(comment_type, VALUES(comment_type)), modify_time = CURRENT_TIMESTAMP
|
||||
// `;
|
||||
// var params = commentInfoList.map(commentInfo => [
|
||||
// commentInfo.comment_id,
|
||||
// commentInfo.parent_comment_id,
|
||||
// commentInfo.user_id,
|
||||
// commentInfo.song_id,
|
||||
// commentInfo.content,
|
||||
// commentInfo.time,
|
||||
// commentInfo.like_count,
|
||||
// commentInfo.comment_type
|
||||
// ]);
|
||||
// var formattedSql = connection.format(sql, [params]); // 返回一个格式化后的SQL字符串
|
||||
// console.log(params); // 打印原始SQL语句
|
||||
// console.log(formattedSql); // 打印原始SQL语句
|
||||
// //最后需要关闭连接
|
||||
// connection.end();
|
||||
// });
|
||||
// process.exit(0);
|
||||
|
||||
|
||||
// node index --utils comment --min 1935500000 --max 1935550000 --limit 10
|
||||
|
||||
|
9
netease_music/表合并.sql
Normal file
9
netease_music/表合并.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
REPLACE INTO `comment_origin_` SELECT * FROM `comment`; -- 80.1G
|
||||
REPLACE INTO `user_origin_` SELECT * FROM `user`; -- 5.20G
|
||||
|
||||
|
||||
DELETE `comment`
|
||||
FROM `comment` INNER JOIN `comment_origin_` ON `comment`.comment_id = `comment_origin_`.comment_id;
|
||||
|
||||
DELETE `user`
|
||||
FROM `user` INNER JOIN `user_origin_` ON `user`.user_id = `user_origin_`.user_id;
|
Reference in New Issue
Block a user