爬虫入门(2)——第一视频

1. 网站分析

要爬的网站:
http://www.v1.cn/
在这里插入图片描述

网站分析:
在这里插入图片描述
获得每个视频的链接

进入每个视频的链接,获得视频的标题:
在这里插入图片描述

获得每个视频的链接,然后下载:
在这里插入图片描述

2. 爬取视频

# coding: utf-8
# Author: shelley
# 2020/7/1710:18
import requests
import os
import re
import urllib.request
from lxml import etree

# 抓取网页
def get_page(url):
    headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36'}
    response=requests.get(url,headers=headers)

    # 打开URL
    return response.text

# 获取视频地址

def get_video_urls(page):
    # http://www.v1.cn/video/1283574789372301313.shtml
    html=etree.HTML(page)

    video_urls=html.xpath('//div[@class="tit"]/a/@href')
    filters_url = []
    for video in video_urls:
        if 'video' in video:
            filters_url.append(video)

    return filters_url

# 下载视频
def download_video(real_url,video_name):
    path='F:/爬虫/video/v1/{}.mp4'.format(video_name)

    if not os.path.exists(path):
        print('正在下载:{}'.format(video_name))
        urllib.request.urlretrieve(real_url, path)
        print('{}下载完毕'.format(video_name))
    else:
        print('已经存在')

    pass


if __name__=='__main__':
    url='http://www.v1.cn'
    page=get_page(url)
    video_urls=get_video_urls(page)
    print(video_urls)
    for video_url in video_urls:

        if video_url.endswith('.shtml'):
            video_url=url+video_url
            print(video_url)
            video_content=get_page(video_url)
            print(type(video_content))
            # 获取视频的真正地址
            video_name = re.compile('<h2>(.*)</h2>')
            real_url = re.compile('<source src=(.*) type="video/mp4">')

            video_name = re.findall(video_name, video_content)[0]

            print(video_name)

            real_url = re.findall(real_url, video_content)[0]

            # 获取视频名称
            print(real_url)
            temp = real_url.find('.mp4')
            video_url_ = real_url[1:temp+4]

            # 下载视频
            download_video(video_url_,video_name)


"""
出现的问题:
UnicodeEncodeError: 'gbk' codec can't encode character '\U0001f422' in position 10: illegal multibyte sequence


"""

"""
b'<!doctype html>\n<html>\n<head>\n<meta charset="utf-8">\n<meta name="keywords" content="\xcb\xc4\xb4\xa8\xd5\xfd\xd4\xb4\xb4\xab\xcd\xb3\xce\xc4\xbb\xaf\xbd\xbb\xc1\xf7\xd6\xd0\xd0\xc4">\n<meta name="description" content="">\n<title>\xcb\xc4\xb4\xa8\xd5\xfd\xd4\xb4\xb4\xab\xcd\xb3\xce\xc4\xbb\xaf\xbd\xbb\xc1\xf7\xd6\xd0\xd0\xc4-\xb5\xda\xd2\xbb\xca\xd3\xc6\xb5</title>\n<link href="http://static.v1.cn/v1cn/web2017/css/v1commStyle.css" rel="stylesheet" type="text/css">\n<link href="http://static.v1.cn/v1cn/web2017/css/v1usercenterStyle.css" rel="stylesheet" type="text/css">\n<script src="http://static.v1.cn/js/jquery-1.11.3.min.js"></script>\n<script src="/static/js/countUp.js"></script>\n<script src="/static/js/commonfunction.js"></script>\n<script src="http://static.v1.cn/act/liulianvr/app2.0/layer/layer.js"></script>\n<link href="http://static.v1.cn/v1cn/web2017/css/v1channelStyle.css" rel="stylesheet" type="text/css">\n<link href="http://static.v1.cn/v1cn/web2017/css/v1reg_loginStyle.css" rel="stylesheet" type="text/css">\n\n</head>\n<body>\n<div class="wrapper">\n  <div class="headerWrap">\n    <div class="header">\n      <div class="headerL">\n\n        <ul class="topNav">\n          <li><a href="/">\xcd\xc6\xbc\xf6</a></li>\n                              \t<li><a href="/news_40/">\xba\xec\xb2\xa5</a></li>\n                                        \t<li><a href="/news_1/">\xc9\xe7\xbb\xe1</a></li>\n                                        \t<li><a href="/news_10/">\xce\xc4\xbb\xaf</a></li>\n                                        \t<li><a href="/news_32/">\xd6\xd0\xb0\xa2\xce\xc0\xca\xd3</a></li>\n                                        \t<li><a href="/news_13/">\xb8\xe3\xd0\xa6</a></li>\n                                        \t<li><a href="/news_7/">\xc3\xc0\xca\xb3</a></li>\n                            </ul>\n                <div class="topNavMoreBt">\xb8\xfc\xb6\xe0\n          <div class="topNavMoreMenu gray">\n                            \t          \t<a href="/news_12/">\xc2\xc3\xd3\xce</a>\n\t                                      \t          \t<a href="/news_25/">\xb2\xc6\xbe\xad</a>\n\t                                      \t          \t<a href="/news_11/">\xd3\xe9\xc0\xd6</a>\n\t                                      \t          \t<a href="/news_9999/">\xb4\xf3\xbc\xd2\xb9\xca\xca\xc2</a>\n\t                                      \t          \t<a href="/news_1006/">\xc7\xd7\xd7\xd3</a>\n\t                                      \t          \t<a href="/news_8/">\xd0\xc2\xce\xc5</a>\n\t                                      \t          \t<a href="/news_16/">\xc6\xfb\xb3\xb5</a>\n\t                                      \t          \t<a href="/news_1004/">\xbf\xc6\xbc\xbc</a>\n\t                                      \t          \t<a href="/news_99/">\xc3\xc0\xc0\xf6\xcf\xe7\xb4\xe5</a>\n\t                                      \t          \t<a href="/news_41/">\xb9\xfe\xc0\xad\xbf\xea\xd7\xd3</a>\n\t                        <!--              <a href="http://vr.v1.cn/" target="_blank">VR</a>-->\n              <a href="http://www.liangziport.com/" target="_blank">\xc1\xbf\xd7\xd3\xb8\xdb</a>\n          </div>\n        </div>\n              </div>\n      <div class="headerR_wrap">\n        <div class="headerR">\n          <ul class="operation">\n                            <li><a href="/user/login" class="icoBt icoUser">\xb5\xc7\xc2\xbc</a></li>\n                        <li><a href="javascript:void(0)" class="icoBt icoBt1" id="cyy_upload">\xc9\xcf\xb4\xab</a></li>\n            <li><a target="_blank" href="http://weibo.com/myv1" class="icoBt icoBt2">\xce\xa2\xb2\xa9</a></li>\n            <li><a target="_blank" href="http://apps.v1.cn/" class="icoBt icoBt3">APP</a></li>\n            <li id="moreMenu"><a href="javascript:" class="icoBt icoBt4">\xb8\xfc\xb6\xe0</a>\n              <div class="moreMenuList">\n                <ul>\n                    <li><a href="http://ir.v1group.com/tc/bus_assets.php">\xb9\xd8\xd3\xda\xce\xd2\xc3\xc7</a></li>\n                  <li><a href="http://www.v1group.com/tc/contact_email.php">\xc1\xaa\xcf\xb5\xce\xd2\xc3\xc7</a></li>\n                  <li><a href="https://www.liepin.com/company/9113901/">\xbc\xd3\xc8\xeb\xce\xd2\xc3\xc7</a></li>\n                  <li><a href="http://www.12377.cn/" target="_blank">\xc1\xae\xbd\xe0\xbe\xd9\xb1\xa8</a></li>\n                  <li><a href="http://pc.v1.cn/vodone/aboutus/law/protocol.html">\xd3\xc3\xbb\xa7\xd0\xad\xd2\xe9</a></li>\n                </ul>\n              </div>\n            </li>\n          </ul>\n        </div>\n      </div>\n    </div>\n  </div>\n  <!--user center begin-->\n    \t<div class="conMainWrap"> \n\t  \n    <!--conHeader-->\n    <div class="conHeader">\n        <a href="/" class="logo">\xb5\xda\xd2\xbb\xca\xd3\xc6\xb5</a>\n      <div class="searchBoxR">\n        <input class="searchInp" type="text" id="searchWordNew" value="" placeholder="\xcb\xd1\xc4\xe3\xcf\xb2\xbb\xb6" >\n        <a href="javascript:void(0)" class="searchBt"></a></div>\n    </div>\n    <!--conHeader end-->\n    \n    <script>\n    $(function(){\n        $(\'.searchBt\').click(function(){\n\t\t\tvar val = $.trim($(\'#searchWordNew\').val());\n\t\t\tif(val)\n\t\t\t{\n\t\t\t\twindow.open(\'/search/getList?keyword=\'+val)\n\t\t\t}\n\t\t\treturn false;\n\t\t})\n    })\n    </script><link href="http://static.v1.cn/v1cn/web2017/css/v1playStyle.css" rel="stylesheet" type="text/css">\n<link href="/node_modules/video.js/dist/video-js.min.css" rel="stylesheet">\n<script src="/node_modules/video.js/dist/video.min.js"></script>\n<script src="/node_modules/video.js/dist/lang/zh-CN.js"></script>\n\n<div class="mainBox shadowBox">\n    <div class="videoTop">\n        <h2>\xcb\xc4\xb4\xa8\xd5\xfd\xd4\xb4\xb4\xab\xcd\xb3\xce\xc4\xbb\xaf\xbd\xbb\xc1\xf7\xd6\xd0\xd0\xc4</h2>\n        <div class="miniBanner">\n            <script type=\'text/javascript\'><!--//<![CDATA[\n                var m3_u = (location.protocol == \'https:\' ? \'http://luckstatic.v1.cn/st/10000/1500/1464.js\' : \'http://luckstatic.v1.cn/st/10000/1500/1464.js\');\n                document.write("<scr" + "ipt type=\'text/javascript\' src=\'" + m3_u);\n                document.write("?rand=" + new Date().getTime());\n                document.write("\'><\\/scr" + "ipt>");\n                //]]>--></script>\n        </div>\n    </div>\n    <!--20170512 \xd0\xde\xb8\xc4-->\n    <input type="hidden" id="vid" value="1283574789372301313"/>\n    <input type="hidden" id="last_id" value="0"/>\n    <!--videoMod begin-->\n    <div class="videoMod">\n        <div class="videoBox">\n            <video\n                    width="820"\n                    height="470"\n                    id="video-player"\n                    class="video-js vjs-big-play-centered"\n                    controls\n                    autoplay\n                    preload="auto"\n                    poster="http://v1-new-pro-1255829851.cos.ap-beijing.myqcloud.com/img/2020/7/16/c9c14710-36ff-4ed3-87e8-7e2f6b6c7330.png"\n                    data-setup=\'{}\'>\n                <source src="http://1400299523.vod2.myqcloud.com/d457202dvodtranscq1400299523/9c4166bb5285890805259524889/v.f30.mp4?t=5f11b150&us=tpblFePS7x&sign=a411e14a07d92d30a336bc673268cbf9" type="video/mp4"></source>\n                <p class="vjs-no-js">\n                    To view this video please enable JavaScript, and consider upgrading to a\n                    web browser that\n                    <a href="http://videojs.com/html5-video-support/" target="_blank">\n                        supports HTML5 video\n                    </a>\n                </p>\n            </video>\n        </div>\n\n                    <!--videoList begin-->\n            <div class="videoLike">\n                <div class="videoList" id="scrollBox">\n                    <ul>\n                                                    <li><a target="_blank" href="/video/1231817434832265217.shtml">\n                                    <p class="pic">\n                                        <span class="tipTime">00:31</span>\n                                        <img src="http://1400299523.vod2.myqcloud.com/fd6d3285vodcq1400299523/54b1736b5285890799168498389/5285890799168498390.jpg">\n                                    </p>\n                                    <div class="txt">\xd6\xcd\xc1\xf4\xd4\xda\xba\xba\xcd\xe2\xb5\xd8\xc8\xcb\xd4\xb1\xbf\xc9\xb3\xf6\xb3\xc7 </div>\n                                </a>\n                            </li>\n                                                    <li><a target="_blank" href="/video/1271473002372841474.shtml">\n                                    <p class="pic">\n                                        <span class="tipTime">02:28</span>\n                                        <img src="http://1400299523.vod2.myqcloud.com/fd6d3285vodcq1400299523/d59270195285890803973872781/5285890803973872782.jpg">\n                                    </p>\n                                    <div class="txt">\xd2\xdf\xc7\xe9\xd6\xae\xcf\xc2 \xd2\xe5\xce\xda\xb9\xa4\xc9\xcc </div>\n                                </a>\n                            </li>\n                                                    <li><a target="_blank" href="/video/1231818857458339841.shtml">\n                                    <p class="pic">\n                                        <span class="tipTime">01:42</span>\n                                        <img src="http://1400299523.vod2.myqcloud.com/fd6d3285vodcq1400299523/0771867b5285890799031775566/5285890799031775567.jpg">\n                                    </p>\n                                    <div class="txt">\xb9\xfa\xbc\xd2\xce\xc0\xbd\xa1\xce\xaf\xa3\xba\xc8\xab\xb9\xfa\xd0\xc2\xd4\xf6\xc8\xb7\xd5\xef409\xc0\xfd \xd6\xce\xd3\xfa\xb3\xf6\xd4\xba1846\xc0\xfd </div>\n                                </a>\n                            </li>\n                                                    <li><a target="_blank" href="/video/1250218562689167361.shtml">\n                                    <p class="pic">\n                                        <span class="tipTime">24:08</span>\n                                        <img src="http://v1-new-pro-1255829851.cos.ap-beijing.myqcloud.com/img/2020/4/15/2e9ea913-6b6d-4b9d-824f-ff6144ecdfb5.jpeg">\n                                    </p>\n                                    <div class="txt">\xba\xda\xc1\xfa\xbd\xad\xcb\xe7\xb7\xd2\xba\xd3\xca\xd0\xce\xaf\xb8\xb1\xca\xe9\xbc\xc7\xbd\xe2\xb6\xc1\xd2\xdf\xc7\xe9\xb7\xc0\xbf\xd8\xc7\xe9\xbf\xf6 </div>\n                                </a>\n                            </li>\n                                                    <li><a target="_blank" href="/video/1248135269294534657.shtml">\n                                    <p class="pic">\n                                        <span class="tipTime">08:22</span>\n                                        <img src="http://v1-new-pro-1255829851.cos.ap-beijing.myqcloud.com/img/2020/4/9/83358483-d717-434d-9bdf-0a50dd60f4e8.jpeg">\n                                    </p>\n                                    <div class="txt">86\xcb\xea\xcd\xcb\xce\xe9\xc0\xcf\xb1\xf8\xb3\xaa\xb8\xe8\xbc\xcd\xc4\xee\xc0\xcf\xb0\xe9\xba\xcd\xd5\xbd\xd3\xd1 </div>\n                                </a>\n                            </li>\n                                            </ul>\n                </div>\n            </div>\n            <!--videoList end-->\n        \n    </div>\n    <!--videoMod end-->\n    <div class="video_infoBar"><span\n                class="publishDate">2020-07-16 09:30</span>\n    </div>\n</div>\n\n<div class="hr30"></div>\n\n<!--conMainL begin-->\n<div class="conMainL">\n    <div class="shadowBox padBoxLr uploadUserBox">\n        <div class="userTx"><img src="http://v1-new-pro-1255829851.cos.ap-beijing.myqcloud.com/img/2020/7/8/5800ceec-c1f9-4da5-85ea-07c870e8bee6.jpeg" alt=""></div>\n        <div class="txt" id="1280685034227838978">\n            <p class="userName"><a href="#">\xd5\xfd\xd4\xb4\xce\xc4\xbb\xaf</a></p>\n            <p></p>\n        </div>\n    </div>\n\n    <!-- \xb9\xe3\xb8\xe6 -->\n    <div class="bannerCon">\n        <script type=\'text/javascript\'><!--//<![CDATA[\n            var m3_u = (location.protocol == \'https:\' ? \'http://luckstatic.v1.cn/st/10000/1500/1469.js\' : \'http://luckstatic.v1.cn/st/10000/1500/1469.js\');\n            document.write("<scr" + "ipt type=\'text/javascript\' src=\'" + m3_u);\n            document.write("?rand=" + new Date().getTime());\n            document.write("\'><\\/scr" + "ipt>");\n            //]]>--></script>\n    </div>\n    <!-- \xb9\xe3\xb8\xe6 -->\n\n    <!--      <div class="shadowBox padBoxLr">-->\n    <!--        <div class="commentTit">\xb2\xc2\xc4\xe3\xcf\xb2\xbb\xb6</div>-->\n    <!--\t\t <ul class="likeList"></ul> -->\n    <!--      </div>-->\n\n    <!-- \xb9\xe3\xb8\xe6 -->\n    <div class="bannerCon">\n        <script type=\'text/javascript\'><!--//<![CDATA[\n            var m3_u = (location.protocol == \'https:\' ? \'http://luckstatic.v1.cn/st/10000/1500/1467.js\' : \'http://luckstatic.v1.cn/st/10000/1500/1467.js\');\n            document.write("<scr" + "ipt type=\'text/javascript\' src=\'" + m3_u);\n            document.write("?rand=" + new Date().getTime());\n            document.write("\'><\\/scr" + "ipt>");\n            //]]>--></script>\n    </div>\n    <!-- \xb9\xe3\xb8\xe6 -->\n            <div class="shadowBox padBoxLr">\n            <input type="hidden" id="next_id">\n            <input type="hidden" id="next_last_update_time">\n            <div class="commentTit" id="commentTit">\xc6\xc0\xc2\xdb</div>\n\n            <!--plList begin-->\n            <ul class="plList"></ul>\n            <!--plList end-->\n\n            <div class="listMoreBar" style="display:none;"><span>\xb5\xe3\xbb\xf7\xb2\xe9\xbf\xb4\xb8\xfc\xb6\xe0</span></div>\n\n            <div class="hr20"></div>\n        </div>\n    </div>\n<!--conMainL end-->\n<!--conMainR begin-->\n<div class="conMainR">\n    <div class="sideBanner s1">\n        <script type=\'text/javascript\'><!--//<![CDATA[\n            var m3_u = (location.protocol == \'https:\' ? \'http://luckstatic.v1.cn/st/10000/1500/1465.js\' : \'http://luckstatic.v1.cn/st/10000/1500/1465.js\');\n            document.write("<scr" + "ipt type=\'text/javascript\' src=\'" + m3_u);\n            document.write("?rand=" + new Date().getTime());\n            document.write("\'><\\/scr" + "ipt>");\n            //]]>--></script>\n    </div>\n    <div class="sideBanner s2">\n        <script type=\'text/javascript\'><!--//<![CDATA[\n            var m3_u = (location.protocol == \'https:\' ? \'http://luckstatic.v1.cn/st/10000/1500/1468.js\' : \'http://luckstatic.v1.cn/st/10000/1500/1468.js\');\n            document.write("<scr" + "ipt type=\'text/javascript\' src=\'" + m3_u);\n            document.write("?rand=" + new Date().getTime());\n            document.write("\'><\\/scr" + "ipt>");\n            //]]>--></script>\n    </div>\n    <div class="sideBanner s3">\n        <script type=\'text/javascript\'><!--//<![CDATA[\n            var m3_u = (location.protocol == \'https:\' ? \'http://luckstatic.v1.cn/st/10000/1500/1466.js\' : \'http://luckstatic.v1.cn/st/10000/1500/1466.js\');\n            document.write("<scr" + "ipt type=\'text/javascript\' src=\'" + m3_u);\n            document.write("?rand=" + new Date().getTime());\n            document.write("\'><\\/scr" + "ipt>");\n            //]]>--></script>\n    </div>\n</div>\n<!--conMainR end-->\n<div class="hr20"></div>\n</div>\n\n<!--20170522 begin-->\n<div id="popBanner">\n    <script type=\'text/javascript\'><!--//<![CDATA[ \n        var m3_u = (location.protocol == \'https:\' ? \'http://luckstatic.v1.cn/st/10000/1500/1470.js\' : \'http://luckstatic.v1.cn/st/10000/1500/1470.js\');\n        document.write("<scr" + "ipt type=\'text/javascript\' src=\'" + m3_u);\n        document.write("?rand=" + new Date().getTime());\n        document.write("\'><\\/scr" + "ipt>");\n        //]]>--></script>\n</div>\n<!--20170522 end-->\n\n<script src="http://static.v1.cn/v1cn/web2017/js/jquery.nicescroll.js"></script>\n<script>\n    $(\'#scrollBox\').niceScroll({\n        cursorcolor: "#f5f7fa", //# \xb9\xe2\xb1\xea\xd1\xd5\xc9\xab\n        cursoropacitymax: 1, //\xb8\xc4\xb1\xe4\xb2\xbb\xcd\xb8\xc3\xf7\xb6\xc8\xb7\xc7\xb3\xa3\xb9\xe2\xb1\xea\xb4\xa6\xd3\xda\xbb\xee\xb6\xaf\xd7\xb4\xcc\xac\xa3\xa8scrollabar\xa1\xb0\xbf\xc9\xbc\xfb\xa1\xb1\xd7\xb4\xcc\xac\xa3\xa9\xa3\xac\xb7\xb6\xce\xa7\xb4\xd31\xb5\xbd0\n        touchbehavior: false, //\xca\xb9\xb9\xe2\xb1\xea\xcd\xcf\xb6\xaf\xb9\xf6\xb6\xaf\xcf\xf1\xd4\xda\xcc\xa8\xca\xbd\xb5\xe7\xc4\xd4\xb4\xa5\xc3\xfe\xc9\xe8\xb1\xb8\n        cursorwidth: "5px", //\xcf\xf1\xcb\xd8\xb9\xe2\xb1\xea\xb5\xc4\xbf\xed\xb6\xc8\n        cursorborder: "0", // \t\xd3\xce\xb1\xea\xb1\xdf\xbf\xf2css\xb6\xa8\xd2\xe5\n        cursorborderradius: "0px", //\xd2\xd4\xcf\xf1\xcb\xd8\xce\xaa\xb9\xe2\xb1\xea\xb1\xdf\xbd\xe7\xb0\xeb\xbe\xb6\n        autohidemode: false //\xca\xc7\xb7\xf1\xd2\xfe\xb2\xd8\xb9\xf6\xb6\xaf\xcc\xf5\n    });\n\n    $(".plList").delegate(".huifuBt", "click", function () {\n        $(".plList li").each(function (i) {\n            if ($(this).find(\'.huifuBox\'))\n                $(this).find(\'.huifuBox\').remove();\n        });\n\n        var name = $(this).siblings(\'.userName\').text();\n\n        var html = \'<div class="huifuBox">\';\n        html += \'<div class="commentBox2"><textarea value="\xbb\xd8\xb8\xb4\' + name + \'">\xbb\xd8\xb8\xb4\' + name + \'</textarea></div>\';\n        html += \'<div class="submitBar"><button class="cancelBt fr">\xc8\xa1\xcf\xfb</button>\';\n        html += \'<button class="huifuBt2 fr">\xbb\xd8\xb8\xb4</button></div></div>\';\n\n        $(this).parent(".txt").append(html);\n    });\n\n    $(".plList").delegate(".cancelBt", "click", function () {\n        $(this).parents(\'.huifuBox\').remove();\n\n    });\n\n    $(".plList").delegate("textarea", "focus", function () {\n        var name = $(this).parents(".txt").find(\'.userName\').text();\n        if ($(this).text() == \'\xbb\xd8\xb8\xb4\' + name) {\n            $(this).empty();\n        }\n\n    });\n\n    $(".plList").delegate("textarea", "blur", function () {\n        var name = $(this).parents(".txt").find(\'.userName\').text();\n        if ($(this).text() == \'\') {\n            $(this).text(\'\xbb\xd8\xb8\xb4\' + name);\n        }\n\n    });\n\n    //\xb9\xd8\xb1\xd5\xb5\xaf\xb4\xb0\xb9\xe3\xb8\xe6\n    $(".closeBt").on(\'click\', function () {\n        $(this).parent().hide();\n    });\n\n    $(function () {\n\n        if ($(\'#vid\').val()) {\n            $.post("/play/add", {vid: $(\'#vid\').val()}, function (data) {\n            }, "json");\n        }\n\n        getCommentList();\n\n        $(\'.listMoreBar\').click(function () {\n            getCommentList();\n        })\n\n    });\n\n    function getCommentList() {\n        if ($(\'#vid\').val()) {\n            $.post("/comment/getList4Ajax", {vid: $(\'#vid\').val(), next_id: $(\'#next_id\').val(), next_last_update_time: $(\'#next_last_update_time\').val()}, function (data) {\n                if (data.msg == 1) {\n                    var html = \'\';\n                    $.each(data.list, function (i) {\n                        html += \'<li><div class="pic"><img src="\' + data.list[i].picture + \'" alt=""></div>\';\n                        html += \'<div class="txt" id="\' + data.list[i].comment_id + \'">\';\n\n                        if (data.list[i].vip != 0) {\n                            html += \'<p class="userName vip">\' + data.list[i].nickname + \'</p>\';\n                        }\n                        else {\n                            html += \'<p class="userName">\' + data.list[i].nickname + \'</p>\';\n                        }\n\n                        if (data.list[i].to_userid != 0) {\n                            html += \'<div class="huifuTit">\' + data.list[i].nickname + \'\xbb\xd8\xb8\xb4\xc1\xcb\' + data.list[i].to_nickname + \'</div>\';\n                        }\n\n                        html += \'<div class="plConBox">\' + data.list[i].content + \'</div>\';\n                        html += \'<p class="gray2">\' + data.list[i].create_time + \'</p>\';\n                        html += \'</div></li>\';\n\n\n                    });\n\n                    $(\'.plList\').append(html);\n                    $(\'#next_last_update_time\').val(data.next_last_update_time);\n                    $(\'#next_id\').val(data.next_id);\n                    $(\'.listMoreBar\').show();\n                }\n                else if (data.msg == 2) {\n                    $(\'.listMoreBar\').remove();\n                }\n\n            }, "json");\n        }\n    }\n\n    function getNowFormatDate() {\n        var date = new Date();\n        var seperator1 = "-";\n        var seperator2 = ":";\n        var month = date.getMonth() + 1;\n        var strDate = date.getDate();\n        if (month >= 1 && month <= 9) {\n            month = "0" + month;\n        }\n        if (strDate >= 0 && strDate <= 9) {\n            strDate = "0" + strDate;\n        }\n        var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate\n            + " " + date.getHours() + seperator2 + date.getMinutes()\n            + seperator2 + date.getSeconds();\n        return currentdate;\n    }\n</script>\n <!--footer begin-->\n  <div class="footerWrap">\n    <div class="footerIndexMain">\n    <div class="footerNav">\n      <ul>\n        <li><a target="_blank" href="http://ir.v1group.com/tc/about_group.php">\xbc\xaf\xcd\xc5\xbd\xe9\xc9\xdc</a></li>\n        <li><a target="_blank" href="http://ir.v1group.com/tc/news.php">\xd0\xc2\xce\xc5\xd6\xd0\xd0\xc4</a></li>\n        <!--<li><a target="_blank" href="http://pc.v1.cn/sitemap/">\xcd\xf8\xd5\xbe\xb5\xd8\xcd\xbc</a></li>-->\n        <li><a target="_blank" href="http://ir.v1group.com/tc/bus_assets.php">\xb9\xd8\xd3\xda\xce\xd2\xc3\xc7</a></li>\n        <li><a target="_blank" href="https://www.liepin.com/company/9113901/">\xb3\xcf\xc6\xb8\xd3\xa2\xb2\xc5</a></li>\n        <li><a target="_blank" href="http://www.v1.cn/Qualification/privacy.html">\xd2\xfe\xcb\xbd\xd5\xfe\xb2\xdf</a></li>\n        <li><a target="_blank" href="http://www.v1group.com/tc/contact_email.php">\xc1\xaa\xcf\xb5\xce\xd2\xc3\xc7</a></li>\n      </ul>\n    </div>\n    Copyright \x810\x8482005-2020  \xb5\xda\xd2\xbb\xca\xd3\xc6\xb5\xb9\xab\xcb\xbe\xb0\xe6\xc8\xa8\xcb\xf9\xd3\xd0<br>\n    <a target="_blank" href="http://www.v1.cn/Qualification/xinwen.html?from=v1">\xbb\xa5\xc1\xaa\xcd\xf8\xd0\xc2\xce\xc5\xd0\xc5\xcf\xa2\xb7\xfe\xce\xf1\xd0\xed\xbf\xc9\xd6\xa4(\xb9\xfa\xd0\xc2\xcd\xf8\xd0\xed\xbf\xc9\xd6\xa4\xb1\xe0\xba\xc511220180006)</a>\xa1\xa1<a target="_blank" href="http://www.v1.cn/Qualification/icp.html" >\xb5\xe7\xd0\xc5\xd3\xeb\xd0\xc5\xcf\xa2\xb7\xfe\xce\xf1\xd2\xb5\xce\xf1\xbe\xad\xd3\xaa\xd0\xed\xbf\xc9\xd6\xa4(\xbe\xa9ICP\xd6\xa4050390\xba\xc5)</a>\xa1\xa1<a href="http://www.v1.cn/Qualification/jmzz.shtml">\xb9\xe3\xb2\xa5\xb5\xe7\xca\xd3\xbd\xda\xc4\xbf\xd6\xc6\xd7\xf7\xbe\xad\xd3\xaa\xd0\xed\xbf\xc9\xd6\xa4 (\xb9\xe3\xc3\xbd)\xd7\xd6\xb5\xda150\xba\xc5</a><br>\n    \xcd\xb3\xd2\xbb\xc9\xe7\xbb\xe1\xd0\xc5\xd3\xc3\xb4\xfa\xc2\xeb\xa3\xba911101087754533048  <a target="_blank" href="http://sq.ccm.gov.cn:80/ccnt/sczr/service/business/emark/toDetail/57DBA3B393E0C00EE0530140A8C0691D"> \xcd\xf8\xc2\xe7\xce\xc4\xbb\xaf\xbe\xad\xd3\xaa\xd0\xed\xbf\xc9\xd6\xa4\xa3\xba\xbe\xa9\xcd\xf8\xce\xc4\xa1\xbe2018\xa1\xbf10244-931\xba\xc5</a>\xa1\xa1\xa1\xa1\xcd\xf8\xc2\xe7\xb3\xf6\xb0\xe6\xb7\xfe\xce\xf1\xd0\xed\xbf\xc9\xd6\xa4\xa3\xba\xa3\xa8\xd7\xdc\xa3\xa9\xcd\xf8\xb3\xf6\xd6\xa4\xa3\xa8\xbe\xa9\xa3\xa9\xd7\xd6\xb5\xda194\xba\xc5<br><a target="_blank" href="http://www.v1.cn/Qualification/shiting.html" >\xd0\xc5\xcf\xa2\xcd\xf8\xc2\xe7\xb4\xab\xb2\xa5\xca\xd3\xcc\xfd\xbd\xda\xc4\xbf\xd0\xed\xbf\xc9\xd6\xa4(0105136)</a>  \xb2\xe2\xbb\xe6\xd7\xca\xd6\xca\xd6\xa4\xca\xe9(\xbc\xd7\xb2\xe2\xd7\xca\xd7\xd61100561)  \xd4\xf6\xd6\xb5\xb5\xe7\xd0\xc5\xd2\xb5\xce\xf1\xbe\xad\xd3\xaa\xd0\xed\xbf\xc9\xd6\xa4B2-20050381<a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010502041088" class="gonganBei">\xbe\xa9\xb9\xab\xcd\xf8\xb0\xb2\xb1\xb8\xa3\xba11010502041088\xba\xc5</a><br>\n    \xd3\xca\xcf\xe4:[email protected]\xa1\xa1\xa1\xa1\xc8\xc8\xcf\xdf: 400-006-4571\xa1\xa1\xa1\xa1\xb2\xbb\xc1\xbc\xd0\xc5\xcf\xa2\xbe\xd9\xb1\xa8: 010-64706601\xa1\xa1\xa1\xa1<a target="_blank" href="http://beian.miit.gov.cn">\xbe\xa9ICP\xb1\xb810014938\xba\xc5-4</a>\n    <div class="wanganList"> <a target="_blank" href="http://www.itrust.org.cn/home/index/itrust_certifi/wm/2775453304"><img src="http://static.v1.cn/v1cn/web2017/images/footer_wa_logo1.jpg" ></a> <a target="_blank" href="http://www.hd315.gov.cn/beian/view.asp?bianhao=010202005121600020"><img src="http://static.v1.cn/v1cn/web2017/images/footer_wa_logo2.jpg" ></a> <a target="_blank" href="http://www.12377.cn/"><img src="http://static.v1.cn/v1cn/web2017/images/footer_wa_logo3.jpg" ></a> <a target="_blank" href="http://www.bnia.cn/"><img src="http://static.v1.cn/v1cn/web2017/images/footer_wa_logo4.jpg" ></a> <a target="_blank"  href="http://www.cyberpolice.cn"><img src="http://static.v1.cn/v1cn/web2017/images/footer_wa_logo5.jpg" ></a> <a target="_blank" href="https://credit.szfw.org/CX20141125005630005718.html"><img src="http://static.v1.cn/v1cn/web2017/images/footer_wa_logo6.jpg" ></a> <a target="_blank"  href="http://www.bjwhzf.gov.cn/accuse.do"><img src="http://static.v1.cn/v1cn/web2017/images/footer_wa_logo7.jpg" ></a> <a target="_blank"  href="http://www.bjjubao.org/index.htm"><img src="http://static.v1.cn/v1cn/web2017/images/footer_wa_logo8.jpg" ></a> <a target="_blank"  href="https://ss.knet.cn/verifyseal.dll?sn=e15101011010860803dsde000000&ct=df&a=1&pa=0.917555071164685"><img src="http://static.v1.cn/v1cn/web2017/images/footer_wa_logo9.jpg" ></a></div>\n    </div>\n  </div>\n  <!--footer end-->\n\n</div>\n<script src="http://static.v1.cn/v1cn/web2017/js/v1Site_comm.js"></script>\n<script src="http://static.v1.cn/v1cn/web2017/js/v1Site_miaoping.js"></script>\n<script src="http://static.v1.cn/v1cn/web2017/js/v1Site_focus.js"></script>\n\n<!-- v1\xcd\xb3\xbc\xc6\xb4\xfa\xc2\xeb -->\n<script type="text/javascript">\ncookie={\nset:function(cookieName, cookieValue, expires, path, domain, secure) {\ndocument.cookie =\nescape(cookieName) + \'=\' + escape(cookieValue)\n+ (expires ? \'; expires=\' + expires.toGMTString() : \'\')\n+ (path ? \'; path=\' + path : \'\')\n+ (domain ? \'; domain=\' + domain : \'\')\n+ (secure ? \'; secure\' : \'\');\n},\nget:function(cookieName) {\nvar cookieValue = \'\';\nvar posName = document.cookie.indexOf(escape(cookieName) + \'=\');\nif (posName != 1) {\nvar posValue = posName + (escape(cookieName) + \'=\').length;\nvar endPos = document.cookie.indexOf(\';\', posValue);\nif (endPos != -1) cookieValue = unescape(document.cookie.substring(posValue, endPos));\nelse cookieValue = unescape(document.cookie.substring(posValue));\n}\nreturn (cookieValue);\n}\n}\nif(cookie.get(\'CookieV1Log\')==""){\nv1log=new Date();\ncValue = Math.ceil(((v1log.getTime()*9321+49297) % 233280 /(233280.0)) * 9999999999999999);\nv1log.setTime(v1log.getTime() + 86400000);\ncookie.set(\'CookieV1Log\',cValue,v1log,\'\',\'\',\'\');\n}\npath = "http://v1log.v1.cn/log.js?page=wap_jrtt&yu="+cookie.get(\'CookieV1Log\')+"&tmp="+Math.round(Math.random()*100000)+"&referer="+document.referrer+"&customSort=wap";\ndocument.write("<script type=text/javascript src ="+path+" ><\\/script> ");\n</script>\n<!-- v1\xcd\xb3\xbc\xc6\xb4\xfa\xc2\xebend -->\n\n<!-- START baidu v1.0 -->\n<script type="text/javascript">\nvar _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");\ndocument.write(unescape("%3Cscript src=\'" + _bdhmProtocol + "hm.baidu.com/h.js%3Fcb44eb450c53c91a1cc1d2511f5919b3\' type=\'text/javascript\'%3E%3C/script%3E"));\n</script>\n<!-- END baidu v1.0 -->\n<!-- cnzz  -->\n<div style="display:none">\n<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id=\'cnzz_stat_icon_1255096340\'%3E%3C/span%3E%3Cscript src=\'" + cnzz_protocol + "s95.cnzz.com/z_stat.php%3Fid%3D1255096340%26show%3Dpic\' type=\'text/javascript\'%3E%3C/script%3E"));</script>\n</div>\n<style>\n            .layui-layer { background-color:gray; }\n        </style>\n<!-- end cnzz -->\n</body>\n</html>\n'

"""

"""
编码	语言
utf8	所有语言
gbk	简体中文
gb2312	简体中文
gb18030	简体中文
big5	繁体中文
big5hkscs	繁体中文

"""

"""
"http://1400299523.vod2.myqcloud.com/d457202dvodtranscq1400299523/9c4166bb5285890805259524889/v.f30.mp4?t=5f11b150&us=tpblFePS7x&sign=a411e14a07d92d30a336bc673268cbf9"
"""

猜你喜欢

转载自blog.csdn.net/qq_27009517/article/details/107404785