Enter the singer or song name, click the "Get Song List" button to view detailed information about the singer or song.
Select the song of interest and click the "Get Song Data" button to view the playback link for the song.
You can listen to VIP music for free without any payment.
Note: There is a certain degree of expiration.
The code is as follows:
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("Cool Dog VIP Music Free Listening")
root.geometry("368x630")
root.resizable(False, False)
artist_label = ctk.CTkLabel(root, text="Please enter the singer or song name:")
artist_label.pack(pady=10)
artist_entry = ctk.CTkEntry(root)
artist_entry.pack(pady=10)
get_songs_button = ctk.CTkButton(root, text="Get Song List", 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="Get Song Data", 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()
Instructions:
The usage is very simple. Just enter the singer or song name, and then click the "Get Song List" button to view detailed information about the singer or song.
Then select the song of interest and click the "Get Song Data" button to view the playback link for the song. Copy the link to the browser to play or download. You can listen to VIP music for free without any payment.