您的位置:首页 > 编程语言 > Python开发

Python3利用网页接口制作一个免费的VIP视频播放软件

2018-04-07 12:21 1241 查看
感谢Python大神Jack_cui给的思路http://blog.csdn.net/c406495762 

运行平台: Windows 
Python版本: Python3.x 

IDE: Pycharm
1.想看最新的电影却没钱开会员怎么办
没有会员,想在线观看或下载爱奇艺、PPTV、优酷、网易公开课、腾讯视频、搜狐视频、乐视、土豆、A站、B站等主流视频网站的VIP视频





对于我这样的人来说,穷使我进步!

2.软件下载地址
链接:https://pan.baidu.com/s/1Zm-dWKipnupuPDN99Ut1aQ 密码:1adt


下载软件后杀毒软件可能会报毒,具体为什么不知道,关了杀毒软件用就行

3.软件使用方法


打开软件是这样的,你可以复制想看的视频链接到框中




点击“播放VIP视频”即可观看,效果如下


如果不能观看则点击另外一个视频通道,再次选择播放


4.源码分享#encoding=utf-8
import tkinter
import tkinter.messagebox
import webbrowser

def Button():
a = 'http://www.a305.org/flv.php?url=' if varRadio.get() else 'http://www.82190555.com/video.php?url='
b = entry_movie_link.get()
webbrowser.open(a+b)
def qk():
entry_movie_link.delete(0,'end')

def openaqy():
webbrowser.open('http://www.iqiyi.com')

def opentx():
webbrowser.open('http://v.qq.com')

def openyq():
webbrowser.open('http://www.youku.com/')

def about():
abc='''
经过测试爱奇艺、优酷、腾讯的VIP视频可以播放
链接格式为 http://www.iqiyi.com/v_19rrb2u62s.html?fc=82992814760eeac6 '''
tkinter.messagebox.showinfo(title='帮助文件', message=abc)
def zzxx():
msg='''
作者:齐泽文
邮箱:792804986@qq.com
Python爬虫代码分享群:497719008
'''
tkinter.messagebox.showinfo(title='联系方式', message=msg)
if __name__ == '__main__':
root=tkinter.Tk()
root.title('VIP视频破解软件')
root['width']=500
root['height']=300

menubar = tkinter.Menu(root)
helpmenu = tkinter.Menu(menubar, tearoff=0)
helpmenu.add_command(label='帮助文档', command=about)
helpmenu.add_command(label='作者信息', command=zzxx)
menubar.add_cascade(label='帮助(H)', menu=helpmenu)
root.config(menu=menubar)

varentry1= tkinter.StringVar(value='')
lab_movie_gallery=tkinter.Label(root, text='视频播放通道')
lab_movie_gallery.place(x=20,y=20,width=100,height=20)
varRadio=tkinter.IntVar(value=1)
Radiobutton1_movie_gallery=tkinter.Radiobutton(root,variable=varRadio,value=0,text='视频通道1')
Radiobutton2_movie_gallery = tkinter.Radiobutton(root, variable=varRadio, value=1, text='视频通道2')
Radiobutton1_movie_gallery.place(x=130,y=20,width=100,height=20)
Radiobutton2_movie_gallery.place(x=250, y=20, width=100, height=20)

varentry2=tkinter.StringVar(value='https://v.qq.com/x/cover/u4s2zisluorvkgt.html')
lab_movie_link = tkinter.Label(root, text='视频播放链接')
lab_movie_link.place(x=20, y=60, width=100, height=20)
entry_movie_link = tkinter.Entry(root, textvariable=varentry2)
entry_movie_link.place(x=130, y=60, width=300, height=20)
button_movie_link=tkinter.Button(root,text='清空',command=qk)
button_movie_link.place(x=440,y=60,width=30,height=20)
lab_remind = tkinter.Label(root, text='将视频链接复制到框内,点击播放VIP视频')
lab_remind.place(x=50, y=90, width=400, height=20)
varbutton=tkinter.StringVar
button_movie= tkinter.Button(root, text='播放VIP视频', command=Button)
button_movie.place(x=140, y=120, width=200, height=60)

button_movie1 = tkinter.Button(root, text='爱奇艺', command=openaqy)
button_movie1.place(x=60, y=200, width=100, height=60)

button_movie2 = tkinter.Button(root, text='腾讯视频', command=opentx)
button_movie2.place(x=180, y=200, width=100, height=60)

button_movie3 = tkinter.Button(root, text='优酷视频', command=openyq)
button_movie3.place(x=300, y=200, width=100, height=60)

root.mainloop()视频所使用的接口在Button()中学到的同学请关注我哦!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐