腾讯视频链接抓取,通用所有!

直接对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')

posted @ 2020-10-13 01:36  运维之爪  阅读(4165)  评论(2编辑  收藏  举报