banner
andrewji8

Being towards death

Heed not to the tree-rustling and leaf-lashing rain, Why not stroll along, whistle and sing under its rein. Lighter and better suited than horses are straw sandals and a bamboo staff, Who's afraid? A palm-leaf plaited cape provides enough to misty weather in life sustain. A thorny spring breeze sobers up the spirit, I feel a slight chill, The setting sun over the mountain offers greetings still. Looking back over the bleak passage survived, The return in time Shall not be affected by windswept rain or shine.
telegram
twitter
github

Python写免费酷狗Vip音乐

输入歌手或歌曲名称,点击 "获取歌曲列表" 按钮,即可查看该歌手或歌曲的详细信息。

选择感兴趣的歌曲,点击 "获取歌曲信息" 按钮,即可查看该歌曲的播放链接。

无需任何付费,即可免费畅听 VIP 音乐。
声明:有一定的失效性
代码如下:

import requests
import tkinter as tk
import customtkinter as ctk

def get_song_list():
    artist = artist_entry.get()
    url = f"https://www.hhlqilongzhu.cn/api/dg_kgmusic.php?gm={artist}&n="
    response = requests.get(url)

    if response.status_code == 200:
        song_list.delete(0, tk.END)
        for song in response.text.split('\n'):
            if song.strip():
                song_list.insert(tk.END, song.strip())
    else:
        song_info_text.delete("1.0", tk.END)
        song_info_text.insert(tk.END, f"Error: {response.status_code} - {response.text}")

def get_song_data():
    artist = artist_entry.get()
    selected_index = song_list.curselection()
    if selected_index:
        selected_song = song_list.get(selected_index)
        url = f"https://www.hhlqilongzhu.cn/api/dg_kgmusic.php?gm={artist}&n={selected_song}"
        response = requests.get(url)

        if response.status_code == 200:
            song_info_text.delete("1.0", tk.END)
            song_info_text.insert(tk.END, response.text)
        else:
            song_info_text.delete("1.0", tk.END)
            song_info_text.insert(tk.END, f"Error: {response.status_code} - {response.text}")
    else:
        song_info_text.delete("1.0", tk.END)
        song_info_text.insert(tk.END, "No song selected.")

ctk.set_appearance_mode("dark")
ctk.set_default_color_theme("dark-blue")

root = ctk.CTk()
root.title("酷狗VIP音乐免费听")
root.geometry("368x630")
root.resizable(False, False)

artist_label = ctk.CTkLabel(root, text="请输入歌手或者歌曲名称:")
artist_label.pack(pady=10)

artist_entry = ctk.CTkEntry(root)
artist_entry.pack(pady=10)

get_songs_button = ctk.CTkButton(root, text="获取歌曲列表", command=get_song_list)
get_songs_button.pack(pady=10)

song_list = tk.Listbox(root, width=40, height=10)
song_list.pack(pady=20)

get_song_data_button = ctk.CTkButton(root, text="获取歌曲信息", command=get_song_data)
get_song_data_button.pack(pady=10)

song_info_text = tk.Text(root, width=50, height=10)
song_info_text.pack(pady=20)

root.mainloop()

使用方法:

使用方法很简单,只需输入歌手或歌曲名称,然后点击 "获取歌曲列表" 按钮,即可查看该歌手或歌曲的详细信息。

再选择感兴趣的歌曲,点击 "获取歌曲信息" 按钮,即可查看该歌曲的播放链接。将链接复制到浏览将即可播放或下载。无需任何付费,即可免费畅听 VIP 音乐。

加载中...
此文章数据所有权由区块链加密技术和智能合约保障仅归创作者所有。