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"錯誤:{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"錯誤:{response.status_code} - {response.text}")
    else:
        song_info_text.delete("1.0", tk.END)
        song_info_text.insert(tk.END, "未選擇任何歌曲。")

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 音樂。

載入中......
此文章數據所有權由區塊鏈加密技術和智能合約保障僅歸創作者所有。