溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

如何利用Python觀看愛(ài)奇藝VIP視頻

發(fā)布時(shí)間:2021-09-15 17:53:23 來(lái)源:億速云 閱讀:1002 作者:小新 欄目:編程語(yǔ)言

這篇文章主要介紹如何利用Python觀看愛(ài)奇藝VIP視頻,文中介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們一定要看完!

一、前言

在現(xiàn)在這個(gè)快節(jié)奏的社會(huì),人們所面臨的壓力日漸增大,一般人們會(huì)利用聽(tīng)歌看視頻來(lái)舒緩下緊張的情緒,眾所周知,很多視頻是需要收費(fèi),那么這個(gè)時(shí)候我們?cè)撛鯓硬拍茉竭^(guò)這個(gè)限制,免費(fèi)看電影了。

相信大家對(duì)于VIP并不陌生,但是對(duì)著里面的技術(shù)還是頗有興趣的。下面我就來(lái)講解下最簡(jiǎn)單的實(shí)現(xiàn)原理。

首先給大家看一下軟件的主界面,如圖:

如何利用Python觀看愛(ài)奇藝VIP視頻

二、實(shí)現(xiàn)步驟

下面給大家講解下實(shí)現(xiàn)步驟:

1、寫界面

import tkinter as tk import tkinter.messagebox import webbrowser as wb class player:     def __init__(self):         self.root= tk.Tk()   #初始化窗口         self.root.title('VIP視頻破解軟件v1.0')  #窗口名稱         self.root.geometry("700x700")  #設(shè)置窗口大小         #設(shè)置窗口是否可變,寬不可變,高可變,默認(rèn)為True         self.root.resizable(width=True,height=True)         self.menu= tk.Menu(self.root)         self.helpmenu = tk.Menu(self.menu, tearoff=0)         self.helpmenu.add_command(label='幫助文檔', command=self.about)         self.helpmenu.add_command(label='作者信息', command=self.zzxx)         self.menu.add_cascade(label='幫助(H)', menu=self.helpmenu)         self.root.config(menu=self.menu)          self.val= tk.StringVar(value='')         self.label1=tk.Label(self.root, text='視頻播放通道')         self.label1.place(x=20,y=20,width=100,height=20)         self.Radio=tk.IntVar(value=1)         self.Radio1=tk.Radiobutton(self.root,variable=self.Radio,value=0,text='視頻通道1')         self.Radio2 = tk.Radiobutton(self.root, variable=self.Radio, value=1, text='視頻通道2')         self.Radio1.place(x=130,y=20,width=100,height=20)         self.Radio2.place(x=250, y=20, width=100, height=20)          self.val1=tk.StringVar(value='https://www.iqiyi.com/v_19rqpqcijk.html#vfrm=19-9-0-1')         self.link= tk.Label(self.root, text='視頻播放鏈接')         self.link.place(x=20, y=60, width=100, height=20)         self.movie = tk.Entry(self.root, textvariable=self.val1)         self.movie.place(x=130, y=60, width=300, height=20)         self.clean=tk.Button(self.root,text='清空',command=self.qk)         self.clean.place(x=440,y=60,width=30,height=20)         self.warn= tk.Label(self.root, text='將視頻鏈接復(fù)制到框內(nèi),點(diǎn)擊播放VIP視頻')         self.warn.place(x=50, y=90, width=400, height=20)         self.val2=tk.StringVar         self.start= tk.Button(self.root, text='播放VIP視頻', command=self.Button)         self.start.place(x=220, y=140, width=80, height=30)         self.start1 = tk.Button(self.root, text='愛(ài)奇藝', command=self.openaqy)         self.start1.place(x=100, y=200, width=70, height=30)         self.start2 = tk.Button(self.root, text='騰訊視頻', command=self.opentx)         self.start2.place(x=200, y=200, width=80, height=30)         self.start3 = tk.Button(self.root, text='優(yōu)酷視頻', command=self.openyq)         self.start3.place(x=300, y=200, width=80, height=30)         self.b1=tk.Button(self.root,text='技術(shù)博客,點(diǎn)我直達(dá)',command=self.refer)         self.b1.place(x=200,y=600,width=140,height=40,anchor='nw')         self.root.mainloop()

基本上沒(méi)什么 好說(shuō)的,都比較簡(jiǎn)單,我就挑重點(diǎn)說(shuō)。

2、付費(fèi)視頻解析

打開(kāi)愛(ài)奇藝或者其他的,只要是付費(fèi)會(huì)員才能看的視頻都可以,在這里我選這一部電影:

如何利用Python觀看愛(ài)奇藝VIP視頻

可以看出這是部付費(fèi)電影,身為白嫖怪的我們當(dāng)然受不了這個(gè)啦。

于是乎,受網(wǎng)絡(luò)的影響,我找到了視頻解析網(wǎng)站,哈哈哈。

1.http://17kyun.com/api.php?url= 2.https://api.kk06.top/?url=

這兩個(gè)網(wǎng)站親測(cè)可用,也不知道愛(ài)奇藝為啥對(duì)這個(gè)不管管,哈哈哈,咱也不敢問(wèn)。不過(guò)溫馨提示下,視頻解析網(wǎng)站不一定是長(zhǎng)期可以使用的,也許過(guò)一段時(shí)間就失效了,如果失效的話,大家也可以自行度娘找找看。

找到這兩個(gè)寶貝就好辦了,直接把付費(fèi)電影的鏈接放在解析網(wǎng)站地址的后面,然后就是這幅畫面:

 如何利用Python觀看愛(ài)奇藝VIP視頻

我們就達(dá)到了目的,下面開(kāi)始主程序的編寫。

3、編寫解析視頻函數(shù)

def Button(self):     a = 'http://17kyun.com/api.php?url=' if self.val1.get() else 'https://api.kk06.top/?url='  #Python騷操作:推倒式     b = self.movie.get()      wb.open(a+b)  #打開(kāi)瀏覽器進(jìn)行播放

4、編寫瀏覽各大主流網(wǎng)站的函數(shù)

def openaqy(self):      wb.open('http://www.iqiyi.com')   def opentx(self):      wb.open('http://v.qq.com')   def openyq(self):      wb.open('http://www.youku.com/')

5、菜單欄目

def about(self):     abc='''         經(jīng)過(guò)測(cè)試 ,支持站點(diǎn):          愛(ài)奇藝 騰訊 優(yōu)酷 土豆 芒果 樂(lè)視 搜狐 PPTV 華數(shù)TV 風(fēng)行 咪咕 嗶哩嗶哩 ACfun 暴風(fēng) CCTV CNTV          范特西 9i廣場(chǎng)舞 搜狐自媒體 M1905視頻 看看視頻 27盤 虎牙直播 全民直播 戰(zhàn)旗直播 人人視頻 爆米花          今日頭條 天翼視頻 糖豆視頻 龍珠視頻 快手視頻 一直播 新浪視頻 360小視頻 熊貓TV 斗魚(yú)TV 花椒直播          網(wǎng)易公開(kāi)課 音悅臺(tái) 秒拍網(wǎng) 美拍網(wǎng) 愛(ài)拍 鳳凰視頻 梨視頻 微錄客 人民微視頻 17173視頻          優(yōu)米視頻 m3u8 mp4視頻 微博視頻 YY視頻 私有云資源         '''      tkinter.messagebox.showinfo(title='幫助文件', message=abc) def zzxx(self):      msg='''         作者:皮皮         微信: pycharm1314         技術(shù)網(wǎng)站:http://pdcfighting.com/         '''      tkinter.messagebox.showinfo(title='聯(lián)系方式', message=msg)

6、啟動(dòng)程序

啟動(dòng)類player() 即可

以上是“如何利用Python觀看愛(ài)奇藝VIP視頻”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對(duì)大家有幫助,更多相關(guān)知識(shí),歡迎關(guān)注億速云行業(yè)資訊頻道!

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI