你好!这是一个完全免费、开源的Python程序,旨在帮助你快速解决想看的剧或者动漫,没有会员的问题。
import tkinter
import webbrowser
from tkinter import PhotoImage
class VIPVideoApp:
def init(self, root):
self.root = root
self.root.title('VIP追剧神器')
self.root.geometry('480x380') # 调整窗口高度适配图片
self.create_widgets()
def create_widgets(self):
# 输入区域
label_movie_link = tkinter.Label(self.root, text='输入视频网址:')
label_movie_link.place(x=20, y=20, width=100, height=30)
self.entry_movie_link = tkinter.Entry(self.root)
self.entry_movie_link.place(x=125, y=20, width=260, height=30)
button_movie_link = tkinter.Button(self.root, text='清空', command=self.empty)
button_movie_link.place(x=400, y=20, width=50, height=30)
# 平台按钮
platforms = [
('爱奇艺', self.open_iqy, 25),
('腾讯视频', self.open_tx, 125),
('优酷视频', self.open_yq, 225)
]
for text, command, xpos in platforms:
tkinter.Button(self.root, text=text, command=command)\
.place(x=xpos, y=60, width=80, height=40)
# 播放按钮
tkinter.Button(self.root, text='播放VIP视频', command=self.play_video)\
.place(x=325, y=60, width=125, height=40)
# 文字提示
tkinter.Label(self.root,
text='嘿嘿',
fg='black',
font=('微软雅黑', 12, 'bold'))\
.place(x=20, y=110, width=440, height=25)
# 底部提示(位置上调)
tkinter.Label(self.root,
text='嘿嘿',
fg='red',
font=('Arial', 10))\
.place(x=50, y=310, width=400, height=25) # 位置下移
# 锁定窗口尺寸
self.root.resizable(False, False)
# 原有功能保持不变
def open_iqy(self): webbrowser.open('https://www.iqiyi.com')
def open_tx(self): webbrowser.open('https://v.qq.com')
def open_yq(self): webbrowser.open('https://www.youku.com/')
def play_video(self): webbrowser.open(f'https://jx.xmflv.cc/?url={self.entry_movie_link.get()}')
def empty(self): self.entry_movie_link.delete(0, 'end')
if name == 'main':
root = tkinter.Tk()
VIPVideoApp(root)
root.mainloop()
(上面的也是代码和最后这一部分也是)
无需付费、无广告干扰,所有代码开源可查,你可以自由修改和二次开发。
Comments NOTHING