def get_video_info(html):
    regx1 = "swfOutsideUrl:'(.*?)',"
    regx2 = "pic: '(.*?)',"
    result = tools.get_info(html, regx1, fetch_one=True)
    image_url = tools.get_info(html, regx2, fetch_one=True)
    if result:
        return True
def get_video_info(html):
    regx1 = "file:'(.*?)'"
    regx2 = "image:'(.*?)',"
    result = tools.get_info(html, regx1, fetch_one=True)
    result = "http://www.rmzxb.com.cn" + result
    image_url = tools.get_info(html, regx2, fetch_one=True)
    image_url = "http://www.rmzxb.com.cn" + image_url
    if result:
        return True
 def is_video(self, p):
     regx1 = '"videoPlayUrl": "(.*?)"'
     regx2 = '"videoLargePoster": "(.*?)",'
     result = tools.get_info(p._html, regx1, fetch_one=True)
     image_url = tools.get_info(p._html, regx2, fetch_one=True)
     if result:
         return result
     regx3 = '"videoPlayUrl":"(.*?)",'
     result2 = tools.get_info(p._html, regx3, fetch_one=True)
     if result2:
         return True
 def is_video(self, p):
     regx1 = '\[CoverURL\] \=\> (.*?).jpg'
     regx2 = '\[PlayURL\] \=\>(.*?).mp4'
     result = tools.get_info(p._html, regx1, fetch_one=True)
     image_url = tools.get_info(p._html, regx2, fetch_one=True)
     if result:
         return True
     regx3 = '<input type="hidden" name="VideoId" value="(.*?)">'
     result2 = tools.get_info(p._html, regx3, fetch_one=True)
     if result2:
         return True
    def is_video(self, p):
        video_regx1 = "swfOutsideUrl:'(.*?)',"
        video_regx2 = "video-play-count"
        img_regx1 = "pic: '(.*?)',"
        # print(p._html)
        result1 = tools.get_info(p._html, video_regx1, fetch_one=True)
        if video_regx2 in p._html:
            return True

        image_url = tools.get_info(p._html, img_regx1, fetch_one=True)
        if result1:
            return True
 def is_video(self, p):
     regx1 = 'vid:(.*?)//'
     regx2 = r"'img_url': '(.*?)',"
     vid = tools.get_info(p._html, regx1, fetch_one=True)
     url = "http://v.dhtv.cn/api/?mod=video&vid={}".format(vid)
     headers = {
         "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
     }
     json_content = requests.get(url, headers=headers).json()
     result = json_content["video"]["source"]
     image_url = tools.get_info(p._html, regx2, fetch_one=True)
     if result:
         return result
 def is_video(self, p):
     regx1 = '//div[@name="video_bravo_vms"]/span/@name'
     regx2 = 'window=(.*?)&'
     result = tools.xpath_parser(p._html, regx1, fetch_one=True)
     image_url = tools.get_info(p._html, regx2, fetch_one=True)
     if result:
         return True
def get_video_info(html):
    regx1 = '//div[@name="video_bravo_vms"]/span/@name'
    regx2 = 'window=(.*?)&'
    result = tools.xpath_parser(html, regx1, fetch_one=True)
    image_url = tools.get_info(html, regx2, fetch_one=True)
    if result:
        print(result)
        return True
示例#9
0
def get_video_info(root_url, html):
    id = re.search('\d+', root_url).group()
    regx = '//video[@id="video{}"]/source/@src'.format(id)
    regx2 = '"poster": "(.*?)"'
    result = tools.xpath_parser(html, regx, fetch_one=True)
    image_url = tools.get_info(html, regx2, fetch_one=True)
    if result:
        return True
示例#10
0
def get_video_info(html):
    regx1 = '//iframe[@id="playerFrame"]/@src'
    info = tools.xpath_parser(html, regx1, fetch_one=True)
    regx2 = 'src=(.*?)&'
    result = "http:" + tools.get_info(info, regx2, fetch_one=True)
    image_url = tools.xpath_parser(html,
                                   '//meta[@name="shareImg"]/@content',
                                   fetch_one=True)
    if result:
        return True
示例#11
0
def get_video_info(html):
    regx1 = '//div[@id="vt-video"]/video/@src'
    regx2 = '//div[@id="vt-video"]/video/@poster'
    result = tools.xpath_parser(html, regx1, fetch_one=True)
    image_url = tools.xpath_parser(html, regx2, fetch_one=True)
    if result:
        return True
    regx = 'name="mvFlash" pluginspage=".*?" src="(.*?)"'
    flash_url = tools.get_info(html, regx, fetch_one=True)
    if flash_url:
        return True
示例#12
0
 def is_video(self, p):
     char = r'addltype:"video"'
     regx1 = '//div[@id="vt-video"]/video/@src'
     regx2 = '//div[@id="vt-video"]/video/@poster'
     result = tools.xpath_parser(p._html, regx1, fetch_one=True)
     image_url = tools.xpath_parser(p._html, regx2, fetch_one=True)
     if result:
         return True
     regx = 'name="mvFlash" pluginspage=".*?" src="(.*?)"'
     flash_url = tools.get_info(p._html, regx, fetch_one=True)
     if flash_url:
         return True
     if char in p._html:
         return True
示例#13
0
def get_video_info(html):
    node = execjs.get()
    jqury = '"jQuery" + ("1.11.3" + Math.random()).replace(/\D/g, "")'
    para = node.eval(jqury)
    ts = int(time.time() * 1000)
    regx = '//div[@id="cmplayer"]/@data-media'
    url1 = xpath_parser(html, regx, fetch_one=True)
    id = re.search(r'id=(.*?)&', url1).group(1)
    o_url = 'http://yspmvms.81.cn/?id={}&callbackparam={}_{}&ctype=sd&ttype=pc&_={}'.format(
        id, para, ts, ts)
    video_info = requests.get(o_url).text
    regx2 = '"(.*)"'
    video_url = tools.get_info(video_info, regx2, fetch_one=True)
    if video_url:
        print(video_url)
def get_video_info(html):
    regx = 'so.addVariable\("vInfo", "(.*?)"\);'
    result = tools.get_info(html, regx, fetch_one=True)
    image_url = 'http://i8.chinanews.com/2016cns/video/2_03.jpg'
    if result:
        return True
示例#15
0
def get_video_info(html):
    regx = r'showPlayer\((.*?)\)'
    result = tools.get_info(html, regx, fetch_one=True)
    if result:
        return True
示例#16
0
def get_video_info(html):
    regx = r'flashvars="(.*?)"'
    result = tools.get_info(html, regx, fetch_one=True)
    image_url = 'http://images.wenming.cn/web_djw/images/mylogo15072401.jpg'
    if result:
        return True
示例#17
0
def get_video_info(html):
    regx = 'vurl="(.*?)";'
    result = tools.get_info(html, regx, fetch_one=True)
    if result:
        return True
def get_video_info(html):
    regx = r'<iframe class="pageVideo".*?src="(.*?)"'
    result = tools.get_info(html, regx, fetch_one=True)
    if result:
        video_url = result.replace("amp;", "")
        return True
示例#19
0
def get_video_info(html):
    regx = 'video/mp4'
    result = tools.get_info(html, regx, fetch_one=True)
    if result:
        return True
示例#20
0
 def is_video(self, p):
     regx = r'showPlayer\((.*?)\)'
     result = tools.get_info(p._html, regx, fetch_one=True)
     if result:
         return True
示例#21
0
def get_video_info(html):
    regx = 'VIDEO_INFO = {(.*?)}'
    result = tools.get_info(html, regx, fetch_one=True)
    image_url = "http://mat1.gtimg.com/pingjs/ext2020/newom/build/static/images/logo.png"
    if result:
        return True
示例#22
0
 def is_video(self, p):
     regx = '<video.*?src="(.*?)" title'
     result = tools.get_info(p._html, regx, fetch_one=True)
     if result:
         return True
示例#23
0
 def is_video(self, p):
     regx1 = "showVrsPlayer\((.*?)\)"
     result = tools.get_info(p._html, regx1, fetch_one=True)
     image_url = "http://css.tv.itc.cn/global/images/nav1/logo.gif"
     if result:
         return True
示例#24
0
 def is_video(self, p):
     regx = 'vurl="(.*?)";'
     result = tools.get_info(p._html, regx, fetch_one=True)
     if result:
         return True
def get_video_info(html):
    regx = '<p id="video" align="center"><script src=(.*?) type="text/javascript"></script></p>'
    result = tools.get_info(html, regx, fetch_one=True)
    if result:
        return True
示例#26
0
def get_video_info(html):
    regx = '<video.*?src="(.*?)" title'
    result = tools.get_info(html, regx, fetch_one=True)
    if result:
        return True
示例#27
0
def get_video_info(html):
    regx1 = r'fo.addVariable\(\"url\", \"(.*?)\"\);'
    video_url = tools.get_info(html, regx1, fetch_one=True)
    if video_url:
        return True