python实现免费看各大平台视频
本文最后更新于 2024-02-24,文章内容可能已经过时。
原理只是调用了第三方的api
运行截图:
源代码:
from tkinter import *
from tkinter.ttk import *
from tkinter import scrolledtext
import os
def jiexi3():
userput = srk.get()
text.insert(END, "解析网址...\n")
text.insert(END, userput + "\n")
url = 'https://jx.we-vip.com/?url='
def open_browser():
text.insert(END, "创建浏览器实例...\n")
os.system("start " + url + userput)
rizhi.after(2000, open_browser)
def jiexi2():
userput = srk.get()
text.insert(END, "解析网址...\n")
text.insert(END, userput + "\n")
url = 'https://jx.jsonplayer.com/player/?url='
def open_browser():
text.insert(END, "创建浏览器实例...\n")
os.system("start " + url + userput)
rizhi.after(2000, open_browser)
def jiexi1():
userput = srk.get()
text.insert(END,"解析网址...\n")
text.insert(END,userput+"\n")
url = 'https://api.okjx.cc:3389/jx.php?url='
def open_browser():
text.insert(END, "创建浏览器实例...\n")
os.system("start "+url+userput)
rizhi.after(2000, open_browser)
windows = Tk()
windows.title('视频解析')
windows.geometry('450x250')
bq1 =Label(windows,text='免费vip视频解析,调用第三方解析api').grid(row=0,column=0)
gongneng = Frame(windows)
gongneng.grid(row=1,column=1)
bq3 = Label(gongneng,text="请输入网址",foreground="red").grid(row=0,column=0)
srk = Entry(gongneng)
srk.grid(row=1,column=0,pady=7)
an1 = Button(gongneng,text="开始解析(线路1)",command=jiexi1).grid(row=2,column=0,pady=7)
an2 = Button(gongneng,text="开始解析(线路2)",command=jiexi2).grid(row=3,column=0,pady=5)
an3 = Button(gongneng,text="开始解析(清晰)",command=jiexi3).grid(row=4,column=0,pady=5)
rizhi = Frame(windows)
rizhi.grid(row=1,column=0)
text = scrolledtext.ScrolledText(rizhi,width=32,height=17)
text.pack()
text.insert(END,"****日志在这里显示****\n")
windows.mainloop()
本文是原创文章,采用 CC BY-NC-ND 4.0 协议,完整转载请注明来自 Aya