netease_music 临时脚本暂存
This commit is contained in:
37
netease_music/manual-script/# 统计SQL(临时).sql
Normal file
37
netease_music/manual-script/# 统计SQL(临时).sql
Normal file
@@ -0,0 +1,37 @@
|
||||
-- 统计等待爬取的数据条数 2023.12.25
|
||||
SELECT 'comment' as wait_fetch, count(*) as `count` FROM `comment_progress` where current_status = 0
|
||||
UNION ALL
|
||||
SELECT 'album', count(*) FROM `wait_fetch_album`
|
||||
UNION ALL
|
||||
SELECT 'artist', count(*) FROM `wait_fetch_artist`
|
||||
UNION ALL
|
||||
SELECT 'lyric', count(*) FROM `wait_fetch_lyric`
|
||||
|
||||
-- 查看需要爬取的 comment 的分布
|
||||
SELECT cast( FLOOR( song_id / 10000000 ) * 10000000 as UNSIGNED ) as s, count(*) as count
|
||||
FROM comment_progress
|
||||
WHERE current_status != 2
|
||||
GROUP BY s
|
||||
ORDER BY s DESC;
|
||||
|
||||
-- 查看需要爬取的 lyric 的分布
|
||||
SELECT cast( FLOOR( id / 10000000 ) * 10000000 as UNSIGNED ) as s, count(*) as count
|
||||
FROM wait_fetch_lyric
|
||||
GROUP BY s
|
||||
ORDER BY s DESC;
|
||||
|
||||
-- 查看需要爬取的 album 的分布
|
||||
SELECT cast( FLOOR( id / 1000000 ) * 1000000 as UNSIGNED ) as s, count(*) as count
|
||||
FROM wait_fetch_album
|
||||
GROUP BY s
|
||||
ORDER BY s DESC;
|
||||
|
||||
-- 查看需要爬取的 artist 的分布
|
||||
SELECT cast( FLOOR(id / 1000000 ) * 1000000 as UNSIGNED ) as s, count(*) as count
|
||||
FROM wait_fetch_artist
|
||||
GROUP BY s
|
||||
ORDER BY s DESC;
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user