騰訊視頻鏈接抓取,通用所有!


直接對api接口拿鏈接,拼接成vip解析鏈接,可行!

已經試過:使徒行者3, 斗羅大陸

問題:使用阿里雲莫名的會慢,使用家用帶寬速度很快,可能是屏蔽了阿里雲IP
可以接入企業微信的機器人api

網絡上尋找的VIP解析視頻 API接口(僅搬運)

可以替換下面Python腳本的解析鏈接

"https://api.sigujx.com/?url=">快速接口:思古
"https://z1.m1907.cn/?jx=">純凈接口:1907
"https://yi29f.cn/vip.php?url=">接口:千葉
"https://api.927jx.com/vip/?url=">接口:927
"https://www.h8jx.com/jiexi.php?url=">接口:H8
"https://jx.fo97.cn/?url=">接口:星空
"https://jx.000180.top/jx/?url=">接口:180
"https://cn.bjbanshan.cn/jx.php?url=">接口:517
"https://api.8bjx.cn/?url=">接口:8B
"https://jx.1ff1.cn/?url=">接口:爸比雲
"https://jx.wslmf.com/?url=">接口:流氓凡
"https://jiexi.071811.cc/jx.php?url=">接口:石雲
"https://jx.wslmf.com/?url=">接口:凡凡
"https://www.nxflv.com/?url=">接口:諾訊
"https://api.lhh.la/vip/?url=">接口:豪華啦
"https://jiexi.380k.com/?url=">接口:黑雲
"https://py.ha12.xyz/sos/index.php?url=">接口:ha12
"https://jx.mw0.cc/?url=">接口:涼城
"https://yi29f.cn/vip.php?url=">接口:千葉
"https://jx.ejiafarm.com/dy.php?url=">接口:窮二代
"https://www.1717yun.com/jx/ty.php?url=">接口:接口:17雲
"https://beaacc.com/api.php?url=">接口:瀚晶
"https://jx.52damu.com/dmjx/jiexi.php?url=">接口:大幕
"https://jx.jiexis.com/?url=">接口:解析S
"https://jqaaa.com/jx.php?url=">接口:金橋
"https://jx.598110.com/index.php?url=">接口:通用
"https://jx.ivito.cn/?url=">接口:維多
"https://jx.du2.cc/?url=">接口:二度

騰訊視頻鏈接抓取.py

from requests import post
from json import loads
from time import time

headers = {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 '
                         '(KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36'}


def pourl(url, rg='1-99'):
    data = {
        'id': url.split('/')[-1][:-5], 'type': '4', 'range': rg, 'plname': 'qq', 'otype': 'json',
        'callback': '_jsonp_3_2405', '_t': str(int(round(time() * 1000)))
    }
    utxt = post(url='https://s.video.qq.com/get_playsource', headers=headers, data=data).text
    rang = loads(utxt.split('(')[-1][:-1]).get('PlaylistItem').get('indexList')
    return rang, utxt


def getul(url, li=int(-4)):
    tli = []
    for t in [pourl(url, y)[1] for y in pourl(url)[0]]:
        tli.extend(['[{nums} {tags}](https://api.sigujx.com/?url={urls})<br>'.format(
            urls=d.get('playUrl'), tags=(d.get('markLabelList')[0].get('primeText')if d.get('markLabelList') else ''),
            nums=d.get('title')) for d in loads(t.split('(')[-1][:-1]).get('PlaylistItem').get('videoPlayList')])
    print(send_wx(''.join(tli[li:])))


def send_wx(txt):
    webhook = ''
    data = {"msgtype": "markdown", "markdown": {"content": txt}}
    da = post(url=webhook, headers=headers, json=data).json()
    return da
    # return da.get('errcode')


if __name__ == '__main__':
    getul('https://v.qq.com/detail/m/mzc00200x0no5q6.html')
    # getul('https://v.qq.com/detail/m/m441e3rjq9kwpsc.html')


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM