之前在网上看了个爬视频的码,为什么跑不了,请大佬指点
import tkinterimport tkinter.messagebox
import webbrowser
def Button():
a = 'http://www.' if varRadio.get() else 'http://www.'
b = entry_movie_link.get()
webbrowser.open(a+b)
def qk():
entry_movie_link.delete(0,'end')
def openaqy():
webbrowser.open('heep://www.')
def opentx():
webbrowser.open('http://v.')
def openyq():
webbrowser.open('http://www.')
def about():
abc='''
经过测试爱奇艺,优酷,腾讯的VIP可以播放
链接格式为
http://www.
'''
tkinter.messagebox.showinfo(title='帮助文件',mseeage=abc)
def zzxx():
msg='''
'''
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,volue=0,text='视频通道1')
Radiobutton2_movie_gallery = tkinter.Radiobutton(root, variable=varRadio, volue=1, text='视频通道2')
Radiobutton1_movie_gallery.piace(x=130,y=20,width=100,height=20)
Radiobutton2_movie_gallery.place(x=250, y=20,width=100, height=20)
varentry2=tkinter.StringVar(value='http://v.')
lab_movie_link = tkinter.Label(root, text='视频播放链接')
lab_movie_link.place(x=20,y=60,width=100,height=20)
entry_movie_link = tkinter.Entry(rooy,textvariable=varentry2)
entry_movie_link.place(x=130,y=60,width=300,height=20)
button_moxie_link=teinter.Button(root,text='清空',command=qk)
button_movie_link.place(x=50,y=90,width=400,height=20
lab_remind= tkinter.Button(root, text='将视频链接复制到框内,点击播放VIP视频')
lab_remind.place(x=140,y=90,width=200,height=60)
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,heigut=60)
root.mainloop()