Jinnyyy commited on
Commit
7b014db
·
1 Parent(s): bc97a74

add all wyy songs

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. clip_song_prompt.txt +11 -0
  2. crawl_wyy.py +97 -0
  3. download_song/1355478046.mp3 +3 -0
  4. download_song/1381373695.mp3 +3 -0
  5. download_song/1412022124.mp3 +3 -0
  6. download_song/1423551503.mp3 +3 -0
  7. download_song/1430576536.mp3 +3 -0
  8. download_song/1493729601.mp3 +3 -0
  9. download_song/1805088422.mp3 +3 -0
  10. download_song/1807582541.mp3 +3 -0
  11. download_song/1810934723.mp3 +3 -0
  12. download_song/1819956500.mp3 +3 -0
  13. download_song/1823316448.mp3 +3 -0
  14. download_song/1831964843.mp3 +3 -0
  15. download_song/1841382656.mp3 +3 -0
  16. download_song/1850078221.mp3 +3 -0
  17. download_song/1850859749.mp3 +3 -0
  18. download_song/1852733286.mp3 +3 -0
  19. download_song/1853305366.mp3 +3 -0
  20. download_song/1854848174.mp3 +3 -0
  21. download_song/1855080138.mp3 +3 -0
  22. download_song/1855674559.mp3 +3 -0
  23. download_song/1860310179.mp3 +3 -0
  24. download_song/1866770024.mp3 +3 -0
  25. download_song/1869966840.mp3 +3 -0
  26. download_song/1878328194.mp3 +3 -0
  27. download_song/1887473263.mp3 +3 -0
  28. download_song/1889004753.mp3 +3 -0
  29. download_song/1889903370.mp3 +3 -0
  30. download_song/1892247518.mp3 +3 -0
  31. download_song/1892314648.mp3 +3 -0
  32. download_song/1893385346.mp3 +3 -0
  33. download_song/1896191510.mp3 +3 -0
  34. download_song/1898855131.mp3 +3 -0
  35. download_song/1899745164.mp3 +3 -0
  36. download_song/1902836118.mp3 +3 -0
  37. download_song/1904625414.mp3 +3 -0
  38. download_song/1908315696.mp3 +3 -0
  39. download_song/1909357897.mp3 +3 -0
  40. download_song/1916699075.mp3 +3 -0
  41. download_song/1929341599.mp3 +3 -0
  42. download_song/1930058039.mp3 +3 -0
  43. download_song/1934025428.mp3 +3 -0
  44. download_song/1938534791.mp3 +3 -0
  45. download_song/1938694697.mp3 +3 -0
  46. download_song/1941721724.mp3 +3 -0
  47. download_song/1944427989.mp3 +3 -0
  48. download_song/1945894789.mp3 +3 -0
  49. download_song/1945895726.mp3 +3 -0
  50. download_song/1945895727.mp3 +3 -0
clip_song_prompt.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## Role
2
+ 你是一个专业的音乐人,擅长根据歌词推断歌曲结构,并将歌曲划分为双人合唱的结构。
3
+
4
+ ## Task
5
+ - 你需要先给出划分段落为双人合唱的几种模板
6
+ - 当我给你一首歌时,你需要判断歌曲的结构,并根据上述模板给出多种不同的合唱切割方式
7
+ - 每种切割方式,请说明这样切割的理由与优点
8
+
9
+ ## Tips
10
+ - 合唱的目的是为了让双方有情感互动
11
+ - 你需要注意歌曲的情感变化和叙事感
crawl_wyy.py ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ import pandas as pd
4
+ import pickle
5
+ import csv
6
+ import time
7
+
8
+ def fetch_search_results(song):
9
+ url = f"https://netease.opendilab.org.cn/search?keywords={song}"
10
+
11
+ response = requests.get(url)
12
+
13
+ if response.status_code == 200:
14
+ json_data = response.json()
15
+
16
+ song_list = json_data['result']['songs']
17
+ return [{'id': each_song['id'], 'name': each_song['name'], 'artists': [each_artists['name'] for each_artists in each_song['artists']]} for each_song in song_list]
18
+ else:
19
+ print(f"请求失败,歌曲:{song}, 状态码: {response.status_code}")
20
+ return None
21
+
22
+ def fetch_download_url(song):
23
+ url = f'https://netease.opendilab.org.cn/song/url?id={song["id"]}'
24
+
25
+ response = requests.get(url)
26
+ if response.status_code == 200:
27
+ json_data=response.json()
28
+
29
+ song_url = json_data['data'][0]['url']
30
+ if song_url:
31
+ song['url'] = song_url
32
+ return song # key: id, name, artists, url
33
+ else:
34
+ return None
35
+
36
+ def download_song(song_dict, save_dir):
37
+ response = requests.get(song_dict['url'], stream=True)
38
+
39
+ if response.status_code == 200:
40
+ with open(f'{save_dir}/{song_dict["id"]}.mp3', 'wb') as file:
41
+ for chunk in response.iter_content(chunk_size=8192):
42
+ file.write(chunk)
43
+ print(f"Save:{song_dict['id']}.mp3")
44
+ return f'{save_dir}/{song_dict["id"]}.mp3'
45
+ else:
46
+ print(f"下载失败,状态码: {response.status_code}")
47
+ return None
48
+
49
+ def write_dict_csv(dict_list, csv_path):
50
+ if not dict_list:
51
+ print("No dict")
52
+ return
53
+
54
+ headers = dict_list[0].keys()
55
+ with open(csv_path, 'a', newline='', encoding='utf-8') as csvfile:
56
+ writer = csv.DictWriter(csvfile, fieldnames=headers)
57
+
58
+ writer.writeheader()
59
+
60
+ for d in dict_list:
61
+ writer.writerow(d)
62
+
63
+ print(f"Data written in {csv_path}")
64
+
65
+ def read_from_excel(file_path, column_name):
66
+ df = pd.read_excel(file_path)
67
+ song_names = df[column_name].tolist()
68
+
69
+ return song_names
70
+
71
+ if __name__ == "__main__":
72
+ keywords = read_from_excel('/mnt/afs/niuyazhe/data/acappella/song_to_crawl.xlsx', '歌名')
73
+ save_dir = '/mnt/afs/niuyazhe/data/acappella/download_song'
74
+
75
+ success_list = []
76
+
77
+ for idx, keyword in enumerate(keywords[28:]):
78
+ print(f'Downloading keyword: {keyword}')
79
+ song_list = fetch_search_results(keyword) # all the song_id in id_list
80
+ count = 0
81
+ for song in song_list:
82
+ print(f'\tDownloading song: {song}')
83
+ result = fetch_download_url(song)
84
+ if result:
85
+ count += 1
86
+ # if idx <= 8:
87
+ # save_path = f'{save_dir}/{song["id"]}.mp3'
88
+ # else:
89
+ (f'\t\tDownloading...')
90
+ save_path = download_song(result, save_dir)
91
+ if save_path:
92
+ result['save_path'] = save_path
93
+ success_list.append(result)
94
+ write_dict_csv(success_list, f'{save_dir}/song_list.csv')
95
+ time.sleep(120)
96
+ if count >= 5:
97
+ break
download_song/1355478046.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e7106b3d7555c232ab2138fe3eaaea3b8a8a8e1fe90c7f7472af3e3bf6e0ab2
3
+ size 8562982
download_song/1381373695.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f08713c788c0d255f04de378b2b6fd1c23082f96006a54851497ce6e84ed6961
3
+ size 480813
download_song/1412022124.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b0df22af7467ee9274ab86f9cf7177078e56eb9c640bf40f77f40c9d9717317
3
+ size 8082329
download_song/1423551503.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1e5d82623b12677f762263bdc3bc4a07ba11443dca8b7ccd80a6d85e38d5a7c
3
+ size 2537056
download_song/1430576536.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d173927c663fe724334736436ddbe1b0cbac1bd43ec33a636b6838f8db0b301
3
+ size 11118803
download_song/1493729601.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f44db676f9618663b3b2327466a3c9af3d3433dbb06d6ae28098748cf158a72
3
+ size 10126150
download_song/1805088422.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08823b8f18c452f1c82aecdbd21760c2b910ce35d54aa2c25cf71f0f4c1efd87
3
+ size 4844191
download_song/1807582541.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:498b093909ca42cf6a0aa50c3fd4375c0a7f8b53f0adb69852ca5a9aef891e97
3
+ size 11492876
download_song/1810934723.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de6a0842d20360bb57bc3aa5313e34d29e3b48997098fd467ffd2755de406dfa
3
+ size 8590150
download_song/1819956500.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b09e69443a41723dc62f486e98c0131621775f9a603ed156ff292e49175c322e
3
+ size 2401965
download_song/1823316448.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93b3bb022a58ec239a06d51016ae4ae0b881f293009728424a3e12fac5a17623
3
+ size 481115
download_song/1831964843.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7574b9118101c11d4f7674237504545a6b66e45332c86b3d4282ec70a77f3154
3
+ size 5988354
download_song/1841382656.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e714aefcea2dcc88847dfe6ad09046d5d3f9b6ce0b9348e62223662c74a24af9
3
+ size 8962133
download_song/1850078221.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1629104f3bbef06ce1e150b4fe426c6b692b633f14f31b9ba0ebb22ba00f93cf
3
+ size 11465709
download_song/1850859749.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6284ef095249d6104a956d6e852ae31007f0b6d85370c5c88a3c64856adf9bcd
3
+ size 11523178
download_song/1852733286.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e9e6cdc18898e18901e050909f3f7c470cb69f301bc09863400352b7e0f056f
3
+ size 2769023
download_song/1853305366.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:91b2f830459f7561a2135eb0fd62433a2996d29798eea6767b8ad2a956eafec0
3
+ size 1514925
download_song/1854848174.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e6c7f6a2eeb5c7dcfa1d2fe45b7082e7a14f757e87c1a442361ab9fc036ed093
3
+ size 1354605
download_song/1855080138.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b549121f420f3cfd4d247c3fa38bfda3b7c82c6049b72fb3a86df75d3854a1f1
3
+ size 5010285
download_song/1855674559.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ce8a97760cf68bdd8ebf9ec39d79cedd0e24db4989f5759d29ad8be2d54399d
3
+ size 5014509
download_song/1860310179.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2eb72043b9dcc4435debc04efe047fc4648c09943ba0888e864ba4dab38084aa
3
+ size 8126215
download_song/1866770024.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51ac2d63b08da3af0903263b39021ca6f4af7553f8c2e2c36f7dafea59ab0131
3
+ size 4229805
download_song/1869966840.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8482b88dab268a21deca07ffd957f4607f92a6eb7f945c156f9d588895f6a72e
3
+ size 8365497
download_song/1878328194.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df4bccf8f24db176d7833213f55c1e3a778efe0383ce5a3bf122c5a51bb3a672
3
+ size 11082231
download_song/1887473263.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db267142bcc7e2c0d3ebd2dd1b2c8d23ef30512ddc70a7a8b4b42054f50924f9
3
+ size 8204582
download_song/1889004753.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9ea13335c9998c652587cb1aa396f4ecc920ba2b4e46889f3a3b3a7b5b0d19f
3
+ size 5122133
download_song/1889903370.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35a371e4d39d4b4ab7fd3478ef9964e4d458f77970f7d580cbcc04f3750ba4b9
3
+ size 8722852
download_song/1892247518.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:963983c9c7804d6337cbcdcf67f6f21c98e017b272731087e854f82ea726be46
3
+ size 12291178
download_song/1892314648.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92c1fffe0d1560b003c09703e1f5dd38020e6722df70d9aa078cd424ec0a7355
3
+ size 8961089
download_song/1893385346.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:680fb9b31992e9644e73d93aef6313ce7324a917df6b152751b589d4106599e3
3
+ size 9144991
download_song/1896191510.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b3f0fc471fc1ef6ba2c3af190f274ddc8dfc61e7c254330f3613ce0e65a637d
3
+ size 10974607
download_song/1898855131.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:306729cb5f86bb45b37f4d5e627b99c294dc8464e8dedffa42786e3667ea4d38
3
+ size 9615195
download_song/1899745164.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0d13be1f1f850c7424e81de02c9ee5749ee0a2935a556f13ba11663f6467fe0
3
+ size 6900525
download_song/1902836118.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5411fc914f11c4ef64b3902dd610407974211c036410c29d530400ee2926d5dd
3
+ size 11544076
download_song/1904625414.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5c16bac957cf3cf64bc0a09e9d96b8b0d34ce2316f15fe78dfd136f6733b2a0
3
+ size 11492876
download_song/1908315696.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30d7f54a1d7a3ac46e68807494d15692f5b677343fe5c9a571fcd88eaf05a9da
3
+ size 8117805
download_song/1909357897.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a7f6ce69952853592b3dd20f37bcf3b934f370d2bf529541e6621b89a5eeae9
3
+ size 5012419
download_song/1916699075.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c7a79779e34bc80520a0b8bb7deb9d455031ed680f18ab20f945d24c5b79b2b
3
+ size 6708289
download_song/1929341599.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48d45604fd4754e1def1f53ae88ba8c81a38c02286b2358ae6e5f9d0d97c7b77
3
+ size 8630901
download_song/1930058039.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87e2cecfdea0699670c6a78d0c922d6e0cd9848833bee4994885cdbb4f6241e1
3
+ size 4128436
download_song/1934025428.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a75294b5e14585294ab2971a7abf595a87e19406807c7ec3a58ea77cc228b44a
3
+ size 6563048
download_song/1938534791.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ce12b475b938f5bbbe037d831f395432ad2b1d173221fca640e0d11ac52f7942
3
+ size 7009219
download_song/1938694697.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8d154abc81732fc4dba3c273951a4a0dd1667946eee85cb9fdca199e395a623
3
+ size 10125105
download_song/1941721724.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:249f1ccc6755ad9a504558a16c0d80d294d1544da51b1f55071abe7cce7e98f9
3
+ size 9621165
download_song/1944427989.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:023453316f943c64a59e28a889de9ffed2a8f81654ff68dd1a917f7fb72f7c4a
3
+ size 9296685
download_song/1945894789.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4142a2d557931f1e6a2d9595048c9d1a70e0cf63fdafe74f71b86732964240d3
3
+ size 720813
download_song/1945895726.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5206e1fbfd8348625ddeec1a409ca286e936113ae4d1f7bb7206c254f914d0be
3
+ size 720813
download_song/1945895727.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db54cd6bcee23d9a3ac937155b5f47eaf3d891d69d49f23bc8c385680e7876a3
3
+ size 720813