赞
踩
可以去复制其他平台VIP电影的链接,粘贴解析,不行就换一个接口
理论是通过爬虫调用接口,通过gui展示出来,源码如下
import re
import requests
import tkinter as tk
import webbrowser
url="http://www.qmaile.com/"
response=requests.get(url)
response.encoding="utf-8"
responsed=response.text
name=re.compile(' selected="">(.*?)
rg=re.compile('')
#rg=re.compile('option value=(.*?)selected>')
name=re.findall(name,responsed)
res=re.findall(rg,responsed)
one=res[0]
two=res[1]
three=res[2]
four=res[3]
five=res[4]
six=res[5]
seven=res[6]
root=tk.Tk()
root.geometry("520x270")
root.title('vip movies')
ll=tk.Label(root,text='播放接口',font=12)
ll.grid()
var=tk.StringVar()
r1=tk.Radiobutton(root,text=name[0],variable=var,value=one)
r1.grid(row=0,column=3)
r2=tk.Radiobutton(root,text=name[1],variable=var,value=two)
r2.grid(row=1,column=3)
r3=tk.Radiobutton(root,text=name[2],variable=var,value=three)
r3.grid(row=2,column=3)
r4=tk.Radiobutton(root,text=name[3],variable=var,value=four)
r4.grid(row=3,column=3)
r5=tk.Radiobutton(root,text=name[4],variable=var,value=five)
r5.grid(row=4,column=3)
r6=tk.Radiobutton(root,text=name[5],variable=var,value=six)
r6.grid(row=5,column=3)
r7=tk.Radiobutton(root,text=name[6],variable=var,value=seven)
r7.grid(row=6,column=3)
l2=tk.Label(root,text="播放链接",font=12)
l2.grid(row=7,column=2)
e1=tk.Entry(root,text=" ",width='50')
e1.grid(row=7,column=3)
def bf():
webbrowser.open(var.get()+e1.get())
b1=tk.Button(root,text='播放',font=12,width=8,command=bf)
b1.grid(row=8,column=3)
def clean():
e1.delete(0,'end')
b2=tk.Button(root,text='清除',font=12,width=8,command=clean)
b2.grid(row=9,column=3)
root.mainloop()
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。