正则的应用--读取本地文件1--例如豆瓣-codecs

本文介绍了如何使用正则表达式来读取和解析本地的text.htm文件,该文件内容来源于豆瓣网站。通过正则,可以有效地提取和处理文件中的关键信息。
摘要由CSDN通过智能技术生成

1.之前ip没有被封,可以查询出 所有的评论


# -*- coding:utf-8 -*-
# codecs 打开文件可以指定编码方式
import codecs
import re
from urllib import request
import json
from fake_useragent import UserAgent
agent = UserAgent()

with codecs.open('text.htm', 'r', encoding='utf-8') as f:
    # print(f.read())
    pattern = re.compile('xmlns:.*?data-cid.*?<a.*?>(.*?)</a>')
    res = re.findall(pattern, f.read())

    # print(res)
    for ID in res:
        url = 'https://movie.douban.com/j/review/%s/full' % ID
        req = request.Request(url, headers={'User-Agent': agent.random})
        response = request.urlopen(req)
        # 霸王别姬影评,不同id的评论
        # print(response.read().decode('utf-8'))
        string = response.read().decode('utf-8')
        json_str = json.loads(string)
        # print(json_str['body'])
        html = json_str['body']
        pattern = re.compile('<div id="link-report">.*?data-original="0">(.*?)</div>', re.S)
        res = re.findall(pattern, html)
        # print(res)
        for r in res:
            string = str(r)
            string = re.sub(re.compile('\n|\t| | ', re.S), '', string)
            # 将换行标签替换为\n
            string = re.sub(re.compile('<br>'), '\n', string)
            print(string)

2.本地text.htm文件代码为(豆瓣网直接保存的)

<!DOCTYPE html>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>https://movie.douban.com/subject/1291546/reviews</title><link rel="stylesheet" type="text/css" href="text_files/viewsource.css"></head><body id="viewsource" class="highlight" style="-moz-tab-size: 4" contextmenu="actions"><pre id="line1"><span></span><span class="doctype"><!DOCTYPE html></span><span>
<span id="line2"></span></span><span><<span class="start-tag">html</span> <span class="attribute-name">lang</span>="<a class="attribute-value">zh-cmn-Hans</a>" <span class="attribute-name">class</span>="<a class="attribute-value">ua-windows ua-ff53</a>"></span><span>
<span id="line3"></span></span><span><<span class="start-tag">head</span>></span><span>
<span id="line4"></span>    </span><span><<span class="start-tag">meta</span> <span class="attribute-name">http-equiv</span>="<a class="attribute-value">Content-Type</a>" <span class="attribute-name">content</span>="<a class="attribute-value">text/html; charset=utf-8</a>"></span><span>
<span id="line5"></span>    </span><span><<span class="start-tag">meta</span> <span class="attribute-name">name</span>="<a class="attribute-value">renderer</a>" <span class="attribute-name">content</span>="<a class="attribute-value">webkit</a>"></span><span>
<span id="line6"></span>    </span><span><<span class="start-tag">meta</span> <span class="attribute-name">name</span>="<a class="attribute-value">referrer</a>" <span class="attribute-name">content</span>="<a class="attribute-value">always</a>"></span><span>
<span id="line7"></span>    </span><span><<span class="start-tag">title</span>></span><span>
<span id="line8"></span>  
<span id="line9"></span>    霸王别姬的影评 (5170)
<span id="line10"></span></span><span></<span class="end-tag">title</span>></span><span>
<span id="line11"></span>    
<span id="line12"></span>  </span><span><<span class="start-tag">meta</span> <span class="attribute-name">name</span>="<a class="attribute-value">baidu-site-verification</a>" <span class="attribute-name">content</span>="<a class="attribute-value">cZdR4xxR7RxmM4zE</a>" <span>/</span>></span><span>
<span id="line13"></span>  </span><span><<span class="start-tag">meta</span> <span class="attribute-name">http-equiv</span>="<a class="attribute-value">Pragma</a>" <span class="attribute-name">content</span>="<a class="attribute-value">no-cache</a>"></span><span>
<span id="line14"></span>  </span><span><<span class="start-tag">meta</span> <span class="attribute-name">http-equiv</span>="<a class="attribute-value">Expires</a>" <span class="attribute-name">content</span>="<a class="attribute-value">Sun, 6 Mar 2005 01:00:00 GMT</a>"></span><span>
<span id="line15"></span>  
<span id="line16"></span>  
<span id="line17"></span>  </span><span><<span class="start-tag">meta</span> <span class="attribute-name">name</span>="<a class="attribute-value">keywords</a>" <span class="attribute-name">content</span>="<a class="attribute-value">评论,影评,霸王别姬,观后感</a>"></span><span>
<span id="line18"></span>  </span><span><<span class="start-tag">meta</span> <span class="attribute-name">name</span>="<a class="attribute-value">description</a>" <span class="attribute-name">content</span>="<a class="attribute-value">霸王别姬最新影评, 热门影评</a>"></span><span>
<span id="line19"></span>  </span><span><<span class="start-tag">link</span> <span class="attribute-name">rel</span>="<a class="attribute-value">alternate</a>" <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://movie.douban.com/feed/subject/1291546/reviews">/feed/subject/1291546/reviews</a>" <span class="attribute-name">type</span>="<a class="attribute-value">application/rss+xml</a>" <span class="attribute-name">title</span>="<a class="attribute-value">RSS</a>"></span><span>
<span id="line20"></span>
<span id="line21"></span>  </span><span><<span class="start-tag">link</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://img3.doubanio.com/f/shire/420c6a4b676c73bc6af48dfcdd18b662f5c223d7/css/douban.css">https://img3.doubanio.com/f/shire/420c6a4b676c73bc6af48dfcdd18b662f5c223d7/css/douban.css</a>" <span class="attribute-name">rel</span>="<a class="attribute-value">stylesheet</a>" <span class="attribute-name">type</span>="<a class="attribute-value">text/css</a>"></span><span>
<span id="line22"></span>  </span><span><<span class="start-tag">link</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://img3.doubanio.com/f/shire/ae3f5a3e3085968370b1fc63afcecb22d3284848/css/separation/_all.css">https://img3.doubanio.com/f/shire/ae3f5a3e3085968370b1fc63afcecb22d3284848/css/separation/_all.css</a>" <span class="attribute-name">rel</span>="<a class="attribute-value">stylesheet</a>" <span class="attribute-name">type</span>="<a class="attribute-value">text/css</a>"></span><span>
<span id="line23"></span>  </span><span><<span class="start-tag">link</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://img3.doubanio.com/f/zerkalo/4b7b75331a86c9c8275ac6b7306e820fc072e09a/css/init.css">https://img3.doubanio.com/f/zerkalo/4b7b75331a86c9c8275ac6b7306e820fc072e09a/css/init.css</a>" <span class="attribute-name">rel</span>="<a class="attribute-value">stylesheet</a>" <span class="attribute-name">type</span>="<a class="attribute-value">text/css</a>"></span><span>
<span id="line24"></span>  </span><span><<span class="start-tag">link</span> <span class="attribute-name">rel</span>="<a class="attribute-value">stylesheet</a>" <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://img3.doubanio.com/misc/mixed_static/e68b3523dffaf86.css">https://img3.doubanio.com/misc/mixed_static/e68b3523dffaf86.css</a>"></span><span>
<span id="line25"></span>  </span><span><<span class="start-tag">style</span> <span class="attribute-name">type</span>="<a class="attribute-value">text/css</a>"></span><span></span><span></<span class="end-tag">style</span>></span><span>
<span id="line26"></span>
<span id="line27"></span>  </span><span><<span class="start-tag">script</span> <span class="attribute-name">type</span>="<a class="attribute-value">text/javascript</a>"></span><span>var _head_start = new Date();</span><span></<span class="end-tag">script</span>></span><span>
<span id="line28"></span>  </span><span><<span class="start-tag">script</span> <span class="attribute-name">type</span>="<a class="attribute-value">text/javascript</a>" <span class="attribute-name">src</span>="<a class="attribute-value" href="view-source:https://img3.doubanio.com/f/shire/7cdd59e1378f9ccea648a083fecf12d71ed66c2b/js/jquery-1.8.3.js">https://img3.doubanio.com/f/shire/7cdd59e1378f9ccea648a083fecf12d71ed66c2b/js/jquery-1.8.3.js</a>"></span><span></span><span></<span class="end-tag">script</span>></span><span>
<span id="line29"></span>  </span><span><<span class="start-tag">script</span> <span class="attribute-name">type</span>="<a class="attribute-value">text/javascript</a>" <span class="attribute-name">src</span>="<a class="attribute-value" href="view-source:https://img3.doubanio.com/f/shire/77323ae72a612bba8b65f845491513ff3329b1bb/js/do.js">https://img3.doubanio.com/f/shire/77323ae72a612bba8b65f845491513ff3329b1bb/js/do.js</a>" <span class="attribute-name">data-cfg-autoload</span>="<a class="attribute-value">false</a>"></span><span></span><span></<span class="end-tag">script</span>></span><span>
<span id="line30"></span>
<span id="line31"></span>  </span><span><<span class="start-tag">script</span> <span class="attribute-name">type</span>="<a class="attribute-value">text/javascript</a>" <span class="attribute-name">src</span>="<a class="attribute-value" href="view-source:https://img3.doubanio.com/f/shire/1efae2c2d48b407a9bed76b9dd5dd8de37a8dbe1/js/douban.js">https://img3.doubanio.com/f/shire/1efae2c2d48b407a9bed76b9dd5dd8de37a8dbe1/js/douban.js</a>"></span><span></span><span></<span class="end-tag">script</span>></span><span>
<span id="line32"></span>  </span><span><<span class="start-tag">script</span> <span class="attribute-name">type</span>="<a class="attribute-value">text/javascript</a>" <span class="attribute-name">src</span>="<a class="attribute-value" href="view-source:https://img3.doubanio.com/f/shire/afb2e24c7be373fa64d49d28de42719ec2262e1c/js/lib/moreurl.js">https://img3.doubanio.com/f/shire/afb2e24c7be373fa64d49d28de42719ec2262e1c/js/lib/moreurl.js</a>"></span><span></span><span></<span class="end-tag">script</span>></span><span>
<span id="line33"></span>  </span><span><<span class="start-tag">script</span> <span class="attribute-name">type</span>="<a class="attribute-value">text/javascript</a>" <span class="attribute-name">src</span>="<a class="attribute-value" href="view-source:https://img3.doubanio.com/f/zerkalo/faf4e3047552fe4c8a20b9a9dafab7088b4f71c3/dist/js/base.js">https://img3.doubanio.com/f/zerkalo/faf4e3047552fe4c8a20b9a9dafab7088b4f71c3/dist/js/base.js</a>"></span><span></span><span></<span class="end-tag">script</span>></span><span>
<span id="line34"></span>  </span><span><<span class="start-tag">script</span> <span class="attribute-name">type</span>="<a class="attribute-value">text/javascript</a>" <span class="attribute-name">src</span>="<a class="attribute-value" href="view-source:https://img3.doubanio.com/f/shire/0efdc63b77f895eaf85281fb0e44d435c6239a3f/js/separation/_all.js">https://img3.doubanio.com/f/shire/0efdc63b77f895eaf85281fb0e44d435c6239a3f/js/separation/_all.js</a>"></span><span></span><span></<span class="end-tag">script</span>></span><span>
<span id="line35"></span>  
<span id="line36"></span>  </span><span><<span class="start-tag">link</span> <span class="attribute-name">rel</span>="<a class="attribute-value">stylesheet</a>" <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://img3.doubanio.com/f/zerkalo/9af87b79b46ae1e41888f690110f42215751ac36/css/review/list.css">https://img3.doubanio.com/f/zerkalo/9af87b79b46ae1e41888f690110f42215751ac36/css/review/list.css</a>" <span>/</span>></span><span>
<span id="line37"></span>  </span><span><<span class="start-tag">link</span> <span class="attribute-name">rel</span>="<a class="attribute-value">stylesheet</a>" <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://img3.doubanio.com/dae/cdnlib/libs/LikeButton/1.0.5/style.min.css">https://img3.doubanio.com/dae/cdnlib/libs/LikeButton/1.0.5/style.min.css</a>"></span><span>
<span id="line38"></span>
<span id="line39"></span>  </span><span><<span class="start-tag">script</span> <span class="attribute-name">type</span>="<a class="attribute-value">text/javascript</a>"></span><span></span><span></<span class="end-tag">script</span>></span><span>
<span id="line40"></span>
<span id="line41"></span>    </span><span><<span class="start-tag">link</span> <span class="attribute-name">rel</span>="<a class="attribute-value">shortcut icon</a>" <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://img3.doubanio.com/favicon.ico">https://img3.doubanio.com/favicon.ico</a>" <span class="attribute-name">type</span>="<a class="attribute-value">image/x-icon</a>"></span><span>
<span id="line42"></span></span><span></<span class="end-tag">head</span>></span><span>
<span id="line43"></span>
<span id="line44"></span></span><span><<span class="start-tag">body</span>></span><span>
<span id="line45"></span>  
<span id="line46"></span>  
<span id="line47"></span>  </span><span><<span class="start-tag">script</span> <span class="attribute-name">type</span>="<a class="attribute-value">text/javascript</a>"></span><span>var _body_start = new Date();</span><span></<span class="end-tag">script</span>></span><span>
<span id="line48"></span>
<span id="line49"></span>  
<span id="line50"></span>
<span id="line51"></span>    
<span id="line52"></span>
<span id="line53"></span>
<span id="line54"></span>
<span id="line55"></span>    </span><span><<span class="start-tag">link</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://img3.doubanio.com/dae/accounts/resources/321e246/shire/bundle.css">//img3.doubanio.com/dae/accounts/resources/321e246/shire/bundle.css</a>" <span class="attribute-name">rel</span>="<a class="attribute-value">stylesheet</a>" <span class="attribute-name">type</span>="<a class="attribute-value">text/css</a>"></span><span>
<span id="line56"></span>
<span id="line57"></span>
<span id="line58"></span>
<span id="line59"></span></span><span><<span class="start-tag">div</span> <span class="attribute-name">id</span>="<a class="attribute-value">db-global-nav</a>" <span class="attribute-name">class</span>="<a class="attribute-value">global-nav</a>"></span><span>
<span id="line60"></span>  </span><span><<span class="start-tag">div</span> <span class="attribute-name">class</span>="<a class="attribute-value">bd</a>"></span><span>
<span id="line61"></span>    
<span id="line62"></span></span><span><<span class="start-tag">div</span> <span class="attribute-name">class</span>="<a class="attribute-value">top-nav-info</a>"></span><span>
<span id="line63"></span>  </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://www.douban.com/accounts/login?source=main">https://www.douban.com/accounts/login?source=main</a>" <span class="attribute-name">class</span>="<a class="attribute-value">nav-login</a>" <span class="attribute-name">rel</span>="<a class="attribute-value">nofollow</a>"></span><span>登录</span><span></<span class="end-tag">a</span>></span><span>
<span id="line64"></span>  </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://www.douban.com/accounts/register?source=main">https://www.douban.com/accounts/register?source=main</a>" <span class="attribute-name">class</span>="<a class="attribute-value">nav-register</a>" <span class="attribute-name">rel</span>="<a class="attribute-value">nofollow</a>"></span><span>注册</span><span></<span class="end-tag">a</span>></span><span>
<span id="line65"></span></span><span></<span class="end-tag">div</span>></span><span>
<span id="line66"></span>
<span id="line67"></span>
<span id="line68"></span>    
<span id="line69"></span></span><span><<span class="start-tag">div</span> <span class="attribute-name">class</span>="<a class="attribute-value">top-nav-doubanapp</a>"></span><span>
<span id="line70"></span>  </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://www.douban.com/doubanapp/app?channel=top-nav">https://www.douban.com/doubanapp/app?channel=top-nav</a>" <span class="attribute-name">class</span>="<a class="attribute-value">lnk-doubanapp</a>"></span><span>下载豆瓣客户端</span><span></<span class="end-tag">a</span>></span><span>
<span id="line71"></span>  </span><span><<span class="start-tag">div</span> <span class="attribute-name">id</span>="<a class="attribute-value">top-nav-appintro</a>" <span class="attribute-name">class</span>="<a class="attribute-value">more-items</a>"></span><span>
<span id="line72"></span>    </span><span><<span class="start-tag">p</span> <span class="attribute-name">class</span>="<a class="attribute-value">appintro-title</a>"></span><span>豆瓣</span><span></<span class="end-tag">p</span>></span><span>
<span id="line73"></span>    </span><span><<span class="start-tag">p</span> <span class="attribute-name">class</span>="<a class="attribute-value">slogan</a>"></span><span>我们的精神角落</span><span></<span class="end-tag">p</span>></span><span>
<span id="line74"></span>    </span><span><<span class="start-tag">p</span> <span class="attribute-name">class</span>="<a class="attribute-value">qrcode</a>"></span><span>扫码直接下载</span><span></<span class="end-tag">p</span>></span><span>
<span id="line75"></span>    </span><span><<span class="start-tag">div</span> <span class="attribute-name">class</span>="<a class="attribute-value">download</a>"></span><span>
<span id="line76"></span>      </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://www.douban.com/doubanapp/redirect?channel=top-nav&direct_dl=1&download=iOS">https://www.douban.com/doubanapp/redirect?channel=top-nav<span><span class="error" title="“&”并未开始一个字符引用。(“&”也许应转义为“&amp;”。)">&</span>di</span>rect_dl=1<span><span class="error" title="“&”并未开始一个字符引用。(“&”也许应转义为“&amp;”。)">&</span>down</span>load=iOS</a>"></span><span>iPhone</span><span></<span class="end-tag">a</span>></span><span>
<span id="line77"></span>      </span><span><<span class="start-tag">span</span>></span><span>·</span><span></<span class="end-tag">span</span>></span><span>
<span id="line78"></span>      </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://www.douban.com/doubanapp/redirect?channel=top-nav&direct_dl=1&download=Android">https://www.douban.com/doubanapp/redirect?channel=top-nav<span><span class="error" title="“&”并未开始一个字符引用。(“&”也许应转义为“&amp;”。)">&</span>di</span>rect_dl=1<span><span class="error" title="“&”并未开始一个字符引用。(“&”也许应转义为“&amp;”。)">&</span>down</span>load=Android</a>" <span class="attribute-name">class</span>="<a class="attribute-value">download-android</a>"></span><span>Android</span><span></<span class="end-tag">a</span>></span><span>
<span id="line79"></span>    </span><span></<span class="end-tag">div</span>></span><span>
<span id="line80"></span>    </span><span><<span class="start-tag">div</span> <span class="attribute-name">id</span>="<a class="attribute-value">doubanapp-tip</a>"></span><span>
<span id="line81"></span>      </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://www.douban.com/doubanapp/app?channel=qipao">https://www.douban.com/doubanapp/app?channel=qipao</a>" <span class="attribute-name">class</span>="<a class="attribute-value">tip-link</a>"></span><span>豆瓣 5.0 全新发布</span><span></<span class="end-tag">a</span>></span><span>
<span id="line82"></span>      </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value">javascript: void 0;</a>" <span class="attribute-name">class</span>="<a class="attribute-value">tip-close</a>"></span><span>×</span><span></<span class="end-tag">a</span>></span><span>
<span id="line83"></span>    </span><span></<span class="end-tag">div</span>></span><span>
<span id="line84"></span>  </span><span></<span class="end-tag">div</span>></span><span>
<span id="line85"></span></span><span></<span class="end-tag">div</span>></span><span>
<span id="line86"></span>
<span id="line87"></span>    
<span id="line88"></span>
<span id="line89"></span>
<span id="line90"></span></span><span><<span class="start-tag">div</span> <span class="attribute-name">class</span>="<a class="attribute-value">global-nav-items</a>"></span><span>
<span id="line91"></span>  </span><span><<span class="start-tag">ul</span>></span><span>
<span id="line92"></span>    </span><span><<span class="start-tag">li</span> <span class="attribute-name">class</span>="<a class="attribute-value">on</a>"></span><span>
<span id="line93"></span>      </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://www.douban.com/">https://www.douban.com</a>"  <span class="attribute-name">data-moreurl-dict</span>="<a class="attribute-value">{<span class="entity"><span>&</span>quot;</span>from<span class="entity"><span>&</span>quot;</span>:<span class="entity"><span>&</span>quot;</span>top-nav-click-main<span class="entity"><span>&</span>quot;</span>,<span class="entity"><span>&</span>quot;</span>uid<span class="entity"><span>&</span>quot;</span>:<span class="entity"><span>&</span>quot;</span>0<span class="entity"><span>&</span>quot;</span>}</a>"></span><span>豆瓣</span><span></<span class="end-tag">a</span>></span><span>
<span id="line94"></span>    </span><span></<span class="end-tag">li</span>></span><span>
<span id="line95"></span>    </span><span><<span class="start-tag">li</span> <span class="attribute-name">class</span>="<a class="attribute-value"></a>"></span><span>
<span id="line96"></span>      </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://book.douban.com/">https://book.douban.com</a>" <span class="attribute-name">target</span>="<a class="attribute-value">_blank</a>" <span class="attribute-name">data-moreurl-dict</span>="<a class="attribute-value">{<span class="entity"><span>&</span>quot;</span>from<span class="entity"><span>&</span>quot;</span>:<span class="entity"><span>&</span>quot;</span>top-nav-click-book<span class="entity"><span>&</span>quot;</span>,<span class="entity"><span>&</span>quot;</span>uid<span class="entity"><span>&</span>quot;</span>:<span class="entity"><span>&</span>quot;</span>0<span class="entity"><span>&</span>quot;</span>}</a>"></span><span>读书</span><span></<span class="end-tag">a</span>></span><span>
<span id="line97"></span>    </span><span></<span class="end-tag">li</span>></span><span>
<span id="line98"></span>    </span><span><<span class="start-tag">li</span> <span class="attribute-name">class</span>="<a class="attribute-value"></a>"></span><span>
<span id="line99"></span>      </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://movie.douban.com/">https://movie.douban.com</a>" <span class="attribute-name">target</span>="<a class="attribute-value">_blank</a>" <span class="attribute-name">data-moreurl-dict</span>="<a class="attribute-value">{<span class="entity"><span>&</span>quot;</span>from<span class="entity"><span>&</span>quot;</span>:<span class="entity"><span>&</span>quot;</span>top-nav-click-movie<span class="entity"><span>&</span>quot;</span>,<span class="entity"><span>&</span>quot;</span>uid<span class="entity"><span>&</span>quot;</span>:<span class="entity"><span>&</span>quot;</span>0<span class="entity"><span>&</span>quot;</span>}</a>"></span><span>电影</span><span></<span class="end-tag">a</span>></span><span>
<span id="line100"></span>    </span><span></<span class="end-tag">li</span>></span><span>
<span id="line101"></span>    </span><span><<span class="start-tag">li</span> <span class="attribute-name">class</span>="<a class="attribute-value"></a>"></span><span>
<span id="line102"></span>      </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://music.douban.com/">https://music.douban.com</a>" <span class="attribute-name">target</span>="<a class="attribute-value">_blank</a>" <span class="attribute-name">data-moreurl-dict</span>="<a class="attribute-value">{<span class="entity"><span>&</span>quot;</span>from<span class="entity"><span>&</span>quot;</span>:<span class="entity"><span>&</span>quot;</span>top-nav-click-music<span class="entity"><span>&</span>quot;</span>,<span class="entity"><span>&</span>quot;</span>uid<span class="entity"><span>&</span>quot;</span>:<span class="entity"><span>&</span>quot;</span>0<span class="entity"><span>&</span>quot;</span>}</a>"></span><span>音乐</span><span></<span class="end-tag">a</span>></span><span>
<span id="line103"></span>    </span><span></<span class="end-tag">li</span>></span><span>
<span id="line104"></span>    </span><span><<span class="start-tag">li</span> <span class="attribute-name">class</span>="<a class="attribute-value"></a>"></span><span>
<span id="line105"></span>      </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://www.douban.com/location">https://www.douban.com/location</a>" <span class="attribute-name">target</span>="<a class="attribute-value">_blank</a>" <span class="attribute-name">data-moreurl-dict</span>="<a class="attribute-value">{<span class="entity"><span>&</span>quot;</span>from<span class="entity"><span>&</span>quot;</span>:<span class="entity"><span>&</span>quot;</span>top-nav-click-location<span class="entity"><span>&</span>quot;</span>,<span class="entity"><span>&</span>quot;</span>uid<span class="entity"><span>&</span>quot;</span>:<span class="entity"><span>&</span>quot;</span>0<span class="entity"><span>&</span>quot;</span>}</a>"></span><span>同城</span><span></<span class="end-tag">a</span>></span><span>
<span id="line106"></span>    </span><span></<span class="end-tag">li</span>></span><span>
<span id="line107"></span>    </span><span><<span class="start-tag">li</span> <span class="attribute-name">class</span>="<a class="attribute-value"></a>"></span><span>
<span id="line108"></span>      </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://www.douban.com/group">https://www.douban.com/group</a>" <span class="attribute-name">target</span>="<a class="attribute-value">_blank</a>" <span class="attribute-name">data-moreurl-dict</span>="<a class="attribute-value">{<span class="entity"><span>&</span>quot;</span>from<span class="entity"><span>&</span>quot;</span>:<span class="entity"><span>&</span>quot;</span>top-nav-click-group<span class="entity"><span>&</span>quot;</span>,<span class="entity"><span>&</span>quot;</span>uid<span class="entity"><span>&</span>quot;</span>:<span class="entity"><span>&</span>quot;</span>0<span class="entity"><span>&</span>quot;</span>}</a>"></span><span>小组</span><span></<span class="end-tag">a</span>></span><span>
<span id="line109"></span>    </span><span></<span class="end-tag">li</span>></span><span>
<span id="line110"></span>    </span><span><<span class="start-tag">li</span> <span class="attribute-name">class</span>="<a class="attribute-value"></a>"></span><span>
<span id="line111"></span>      </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://read.douban.com/?dcs=top-nav&dcm=douban">https://read.douban.com<span class="entity"><span>&</span>#47;</span>?dcs=top-nav<span class="entity"><span>&</span>amp;</span>dcm=douban</a>" <span class="attribute-name">target</span>="<a class="attribute-value">_blank</a>" <span class="attribute-name">data-moreurl-dict</span>="<a class="attribute-value">{<span class="entity"><span>&</span>quot;</span>from<span class="entity"><span>&</span>quot;</span>:<span class="entity"><span>&</span>quot;</span>top-nav-click-read<span class="entity"><span>&</span>quot;</span>,<span class="entity"><span>&</span>quot;</span>uid<span class="entity"><span>&</span>quot;</span>:<span class="entity"><span>&</span>quot;</span>0<span class="entity"><span>&</span>quot;</span>}</a>"></span><span>阅读</span><span></<span class="end-tag">a</span>></span><span>
<span id="line112"></span>    </span><span></<span class="end-tag">li</span>></span><span>
<span id="line113"></span>    </span><span><<span class="start-tag">li</span> <span class="attribute-name">class</span>="<a class="attribute-value"></a>"></span><span>
<span id="line114"></span>      </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://douban.fm/?from_=shire_top_nav">https://douban.fm<span class="entity"><span>&</span>#47;</span>?from_=shire_top_nav</a>" <span class="attribute-name">target</span>="<a class="attribute-value">_blank</a>" <span class="attribute-name">data-moreurl-dict</span>="<a class="attribute-value">{<span class="entity"><span>&</span>quot;</span>from<span class="entity"><span>&</span>quot;</span>:<span class="entity"><span>&</span>quot;</span>top-nav-click-fm<span class="entity"><span>&</span>quot;</span>,<span class="entity"><span>&</span>quot;</span>uid<span class="entity"><span>&</span>quot;</span>:<span class="entity"><span>&</span>quot;</span>0<span class="entity"><span>&</span>quot;</span>}</a>"></span><span>FM</span><span></<span class="end-tag">a</span>></span><span>
<span id="line115"></span>    </span><span></<span class="end-tag">li</span>></span><span>
<span id="line116"></span>    </span><span><<span class="start-tag">li</span> <span class="attribute-name">class</span>="<a class="attribute-value"></a>"></span><span>
<span id="line117"></span>      </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://time.douban.com/?dt_time_source=douban-web_top_nav">https://time.douban.com<span class="entity"><span>&</span>#47;</span>?dt_time_source=douban-web_top_nav</a>" <span class="attribute-name">target</span>="<a class="attribute-value">_blank</a>" <span class="attribute-name">data-moreurl-dict</span>="<a class="attribute-value">{<span class="entity"><span>&</span>quot;</span>from<span class="entity"><span>&</span>quot;</span>:<span class="entity"><span>&</span>quot;</span>top-nav-click-time<span class="entity"><span>&</span>quot;</span>,<span class="entity"><span>&</span>quot;</span>uid<span class="entity"><span>&</span>quot;</span>:<span class="entity"><span>&</span>quot;</span>0<span class="entity"><span>&</span>quot;</span>}</a>"></span><span>时间</span><span></<span class="end-tag">a</span>></span><span>
<span id="line118"></span>    </span><span></<span class="end-tag">li</span>></span><span>
<span id="line119"></span>    </span><span><<span class="start-tag">li</span> <span class="attribute-name">class</span>="<a class="attribute-value"></a>"></span><span>
<span id="line120"></span>      </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://market.douban.com/?utm_campaign=douban_top_nav&utm_source=douban&utm_medium=pc_web">https://market.douban.com<span class="entity"><span>&</span>#47;</span>?utm_campaign=douban_top_nav<span class="entity"><span>&</span>amp;</span>utm_source=douban<span class="entity"><span>&</span>amp;</span>utm_medium=pc_web</a>" <span class="attribute-name">target</span>="<a class="attribute-value">_blank</a>" <span class="attribute-name">data-moreurl-dict</span>="<a class="attribute-value">{<span class="entity"><span>&</span>quot;</span>from<span class="entity"><span>&</span>quot;</span>:<span class="entity"><span>&</span>quot;</span>top-nav-click-market<span class="entity"><span>&</span>quot;</span>,<span class="entity"><span>&</span>quot;</span>uid<span class="entity"><span>&</span>quot;</span>:<span class="entity"><span>&</span>quot;</span>0<span class="entity"><span>&</span>quot;</span>}</a>"></span><span>市集</span><span></<span class="end-tag">a</span>></span><span>
<span id="line121"></span>    </span><span></<span class="end-tag">li</span>></span><span>
<span id="line122"></span>    </span><span><<span class="start-tag">li</span>></span><span>
<span id="line123"></span>      </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://movie.douban.com/subject/1291546/reviews#more">#more</a>" <span class="attribute-name">class</span>="<a class="attribute-value">bn-more</a>"></span><span></span><span><<span class="start-tag">span</span>></span><span>更多</span><span></<span class="end-tag">span</span>></span><span></span><span></<span class="end-tag">a</span>></span><span>
<span id="line124"></span>      </span><span><<span class="start-tag">div</span> <span class="attribute-name">class</span>="<a class="attribute-value">more-items</a>"></span><span>
<span id="line125"></span>        </span><span><<span class="start-tag">table</span> <span class="attribute-name">cellpadding</span>="<a class="attribute-value">0</a>" <span class="attribute-name">cellspacing</span>="<a class="attribute-value">0</a>"></span><span>
<span id="line126"></span>          </span><span><<span class="start-tag">tbody</span>></span><span>
<span id="line127"></span>            </span><span><<span class="start-tag">tr</span>></span><span>
<span id="line128"></span>              </span><span><<span class="start-tag">td</span>></span><span>
<span id="line129"></span>                </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://ypy.douban.com/">https://ypy.douban.com</a>" <span class="attribute-name">target</span>="<a class="attribute-value">_blank</a>" <span class="attribute-name">data-moreurl-dict</span>="<a class="attribute-value">{<span class="entity"><span>&</span>quot;</span>from<span class="entity"><span>&</span>quot;</span>:<span class="entity"><span>&</span>quot;</span>top-nav-click-ypy<span class="entity"><span>&</span>quot;</span>,<span class="entity"><span>&</span>quot;</span>uid<span class="entity"><span>&</span>quot;</span>:<span class="entity"><span>&</span>quot;</span>0<span class="entity"><span>&</span>quot;</span>}</a>"></span><span>豆瓣摄影</span><span></<span class="end-tag">a</span>></span><span>
<span id="line130"></span>              </span><span></<span class="end-tag">td</span>></span><span>
<span id="line131"></span>            </span><span></<span class="end-tag">tr</span>></span><span>
<span id="line132"></span>          </span><span></<span class="end-tag">tbody</span>></span><span>
<span id="line133"></span>        </span><span></<span class="end-tag">table</span>></span><span>
<span id="line134"></span>      </span><span></<span class="end-tag">div</span>></span><span>
<span id="line135"></span>    </span><span></<span class="end-tag">li</span>></span><span>
<span id="line136"></span>  </span><span></<span class="end-tag">ul</span>></span><span>
<span id="line137"></span></span><span></<span class="end-tag">div</span>></span><span>
<span id="line138"></span>
<span id="line139"></span>  </span><span></<span class="end-tag">div</span>></span><span>
<span id="line140"></span></span><span></<span class="end-tag">div</span>></span><span>
<span id="line141"></span></span><span><<span class="start-tag">script</span>></span><span>
<span id="line142"></span>  ;window._GLOBAL_NAV = {
<span id="line143"></span>    DOUBAN_URL: "https://www.douban.com",
<span id="line144"></span>    N_NEW_NOTIS: 0,
<span id="line145"></span>    N_NEW_DOUMAIL: 0
<span id="line146"></span>  };
<span id="line147"></span></span><span></<span class="end-tag">script</span>></span><span>
<span id="line148"></span>
<span id="line149"></span>
<span id="line150"></span>
<span id="line151"></span>    </span><span><<span class="start-tag">script</span> <span class="attribute-name">src</span>="<a class="attribute-value" href="view-source:https://img3.doubanio.com/dae/accounts/resources/321e246/shire/bundle.js">//img3.doubanio.com/dae/accounts/resources/321e246/shire/bundle.js</a>" <span class="attribute-name">defer</span>="<a class="attribute-value">defer</a>"></span><span></span><span></<span class="end-tag">script</span>></span><span>
<span id="line152"></span>
<span id="line153"></span>
<span id="line154"></span>
<span id="line155"></span>
<span id="line156"></span>
<span id="line157"></span>      
<span id="line158"></span>
<span id="line159"></span>
<span id="line160"></span>
<span id="line161"></span>    </span><span><<span class="start-tag">link</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://img3.doubanio.com/dae/accounts/resources/094108a/movie/bundle.css">//img3.doubanio.com/dae/accounts/resources/094108a/movie/bundle.css</a>" <span class="attribute-name">rel</span>="<a class="attribute-value">stylesheet</a>" <span class="attribute-name">type</span>="<a class="attribute-value">text/css</a>"></span><span>
<span id="line162"></span>
<span id="line163"></span>
<span id="line164"></span>
<span id="line165"></span>
<span id="line166"></span></span><span><<span class="start-tag">div</span> <span class="attribute-name">id</span>="<a class="attribute-value">db-nav-movie</a>" <span class="attribute-name">class</span>="<a class="attribute-value">nav</a>"></span><span>
<span id="line167"></span>  </span><span><<span class="start-tag">div</span> <span class="attribute-name">class</span>="<a class="attribute-value">nav-wrap</a>"></span><span>
<span id="line168"></span>  </span><span><<span class="start-tag">div</span> <span class="attribute-name">class</span>="<a class="attribute-value">nav-primary</a>"></span><span>
<span id="line169"></span>    </span><span><<span class="start-tag">div</span> <span class="attribute-name">class</span>="<a class="attribute-value">nav-logo</a>"></span><span>
<span id="line170"></span>      </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://movie.douban.com/">https:<span class="entity"><span>&</span>#47;</span><span class="entity"><span>&</span>#47;</span>movie.douban.com</a>"></span><span>豆瓣电影</span><span></<span class="end-tag">a</span>></span><span>
<span id="line171"></span>    </span><span></<span class="end-tag">div</span>></span><span>
<span id="line172"></span>    </span><span><<span class="start-tag">div</span> <span class="attribute-name">class</span>="<a class="attribute-value">nav-search</a>"></span><span>
<span id="line173"></span>      </span><span><<span class="start-tag">form</span> <span class="attribute-name">action</span>="<a class="attribute-value" href="view-source:https://movie.douban.com/subject_search">https:<span class="entity"><span>&</span>#47;</span><span class="entity"><span>&</span>#47;</span>movie.douban.com/subject_search</a>" <span class="attribute-name">method</span>="<a class="attribute-value">get</a>"></span><span>
<span id="line174"></span>        </span><span><<span class="start-tag">fieldset</span>></span><span>
<span id="line175"></span>          </span><span><<span class="start-tag">legend</span>></span><span>搜索:</span><span></<span class="end-tag">legend</span>></span><span>
<span id="line176"></span>          </span><span><<span class="start-tag">label</span> <span class="attribute-name">for</span>="<a class="attribute-value">inp-query</a>"></span><span>
<span id="line177"></span>          </span><span></<span class="end-tag">label</span>></span><span>
<span id="line178"></span>          </span><span><<span class="start-tag">div</span> <span class="attribute-name">class</span>="<a class="attribute-value">inp</a>"></span><span></span><span><<span class="start-tag">input</span> <span class="attribute-name">id</span>="<a class="attribute-value">inp-query</a>" <span class="attribute-name">name</span>="<a class="attribute-value">search_text</a>" <span class="attribute-name">size</span>="<a class="attribute-value">22</a>" <span class="attribute-name">maxlength</span>="<a class="attribute-value">60</a>" <span class="attribute-name">placeholder</span>="<a class="attribute-value">搜索电影、电视剧、综艺、影人</a>" <span class="attribute-name">value</span>="<a class="attribute-value"></a>"></span><span></span><span></<span class="end-tag">div</span>></span><span>
<span id="line179"></span>          </span><span><<span class="start-tag">div</span> <span class="attribute-name">class</span>="<a class="attribute-value">inp-btn</a>"></span><span></span><span><<span class="start-tag">input</span> <span class="attribute-name">type</span>="<a class="attribute-value">submit</a>" <span class="attribute-name">value</span>="<a class="attribute-value">搜索</a>"></span><span></span><span></<span class="end-tag">div</span>></span><span>
<span id="line180"></span>          </span><span><<span class="start-tag">input</span> <span class="attribute-name">type</span>="<a class="attribute-value">hidden</a>" <span class="attribute-name">name</span>="<a class="attribute-value">cat</a>" <span class="attribute-name">value</span>="<a class="attribute-value">1002</a>" <span>/</span>></span><span>
<span id="line181"></span>        </span><span></<span class="end-tag">fieldset</span>></span><span>
<span id="line182"></span>      </span><span></<span class="end-tag">form</span>></span><span>
<span id="line183"></span>    </span><span></<span class="end-tag">div</span>></span><span>
<span id="line184"></span>  </span><span></<span class="end-tag">div</span>></span><span>
<span id="line185"></span>  </span><span></<span class="end-tag">div</span>></span><span>
<span id="line186"></span>  </span><span><<span class="start-tag">div</span> <span class="attribute-name">class</span>="<a class="attribute-value">nav-secondary</a>"></span><span>
<span id="line187"></span>    
<span id="line188"></span>
<span id="line189"></span></span><span><<span class="start-tag">div</span> <span class="attribute-name">class</span>="<a class="attribute-value">nav-items</a>"></span><span>
<span id="line190"></span>  </span><span><<span class="start-tag">ul</span>></span><span>
<span id="line191"></span>    </span><span><<span class="start-tag">li</span>    ></span><span></span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://movie.douban.com/cinema/nowplaying/">https://movie.douban.com/cinema/nowplaying/</a>"
<span id="line192"></span>     ></span><span>影讯<span><span class="error" title="“&”并未开始一个字符引用。(“&”也许应转义为“&amp;”。)">&</span></span>购票</span><span></<span class="end-tag">a</span>></span><span>
<span id="line193"></span>    </span><span></<span class="end-tag">li</span>></span><span>
<span id="line194"></span>    </span><span><<span class="start-tag">li</span>    ></span><span></span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://movie.douban.com/explore">https://movie.douban.com/explore</a>"
<span id="line195"></span>     ></span><span>选电影</span><span></<span class="end-tag">a</span>></span><span>
<span id="line196"></span>    </span><span></<span class="end-tag">li</span>></span><span>
<span id="line197"></span>    </span><span><<span class="start-tag">li</span>    ></span><span></span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://movie.douban.com/tv/">https://movie.douban.com/tv/</a>"
<span id="line198"></span>     ></span><span>电视剧</span><span></<span class="end-tag">a</span>></span><span>
<span id="line199"></span>    </span><span></<span class="end-tag">li</span>></span><span>
<span id="line200"></span>    </span><span><<span class="start-tag">li</span>    ></span><span></span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://movie.douban.com/chart">https://movie.douban.com/chart</a>"
<span id="line201"></span>     ></span><span>排行榜</span><span></<span class="end-tag">a</span>></span><span>
<span id="line202"></span>    </span><span></<span class="end-tag">li</span>></span><span>
<span id="line203"></span>    </span><span><<span class="start-tag">li</span>    ></span><span></span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://movie.douban.com/tag/">https://movie.douban.com/tag/</a>"
<span id="line204"></span>     ></span><span>分类</span><span></<span class="end-tag">a</span>></span><span>
<span id="line205"></span>    </span><span></<span class="end-tag">li</span>></span><span>
<span id="line206"></span>    </span><span><<span class="start-tag">li</span>    ></span><span></span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://movie.douban.com/review/best/">https://movie.douban.com/review/best/</a>"
<span id="line207"></span>     ></span><span>影评</span><span></<span class="end-tag">a</span>></span><span>
<span id="line208"></span>    </span><span></<span class="end-tag">li</span>></span><span>
<span id="line209"></span>    </span><span><<span class="start-tag">li</span>    ></span><span></span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://movie.douban.com/annual/2017?source=navigation">https://movie.douban.com/annual/2017?source=navigation</a>"
<span id="line210"></span>     ></span><span>2017年度榜单</span><span></<span class="end-tag">a</span>></span><span>
<span id="line211"></span>    </span><span></<span class="end-tag">li</span>></span><span>
<span id="line212"></span>    </span><span><<span class="start-tag">li</span>    ></span><span></span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://movie.douban.com/standbyme/2017?source=navigation">https://movie.douban.com/standbyme/2017?source=navigation</a>"
<span id="line213"></span>     ></span><span>2017观影报告</span><span></<span class="end-tag">a</span>></span><span>
<span id="line214"></span>    </span><span></<span class="end-tag">li</span>></span><span>
<span id="line215"></span>  </span><span></<span class="end-tag">ul</span>></span><span>
<span id="line216"></span></span><span></<span class="end-tag">div</span>></span><span>
<span id="line217"></span>
<span id="line218"></span>  </span><span></<span class="end-tag">div</span>></span><span>
<span id="line219"></span>    </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://movie.douban.com/annual/2017?source=patch">https://movie.douban.com/annual/2017?source=patch</a>" <span class="attribute-name">class</span>="<a class="attribute-value">movieannual2017</a>"></span><span></span><span></<span class="end-tag">a</span>></span><span>
<span id="line220"></span></span><span></<span class="end-tag">div</span>></span><span>
<span id="line221"></span>
<span id="line222"></span></span><span><<span class="start-tag">script</span> <span class="attribute-name">id</span>="<a class="attribute-value">suggResult</a>" <span class="attribute-name">type</span>="<a class="attribute-value">text/x-jquery-tmpl</a>"></span><span>
<span id="line223"></span>  </span><span><l</span><span>i data-link="{
  {= url}}">
<span id="line224"></span>            </span><span><a</span><span> 
href="{
  {= url}}" οnclick="moreurl(this, {from:'movie_search_sugg', 
query:'{
  {= keyword }}', subject_id:'{
  {= id}}', i: '{
  {= index}}', type: 
'{
  {= type}}'})">
<span id="line225"></span>            </span><span><i</span><span>mg src="{
  {= img}}" width="40" />
<span id="line226"></span>            </span><span><p</span><span>>
<span id="line227"></span>                </span><span><e</span><span>m>{
  {= title}}</span><span></<span></span>e</span><span>m>
<span id="line228"></span>                {
  {if year}}
<span id="line229"></span>                    </span><span><s</span><span>pan>{
  {= year}}</span><span></<span>s</span>p</span><span>an>
<span id="line230"></span>                {
  {/if}}
<span id="line231"></span>                {
  {if sub_title}}
<span id="line232"></span>                    </span><span><b</span><span>r /></span><span><s</span><span>pan>{
  {= sub_title}}</span><span></<span>s</span>p</span><span>an>
<span id="line233"></span>                {
  {/if}}
<span id="line234"></span>                {
  {if address}}
<span id="line235"></span>                    </span><span><b</span><span>r /></span><span><s</span><span>pan>{
  {= address}}</span><span></<span>s</span>p</span><span>an>
<span id="line236"></span>                {
  {/if}}
<span id="line237"></span>                {
  {if episode}}
<span id="line238"></span>                    {
  {if episode=="unknow"}}
<span id="line239"></span>                        </span><span><b</span><span>r /></span><span><s</span><span>pan>集数未知</span><span></<span>s</span>p</span><span>an>
<span id="line240"></span>                    {
  {else}}
<span id="line241"></span>                        </span><span><b</span><span>r /></span><span><s</span><span>pan>共{
  {= episode}}集</span><span></<span>s</span>p</span><span>an>
<span id="line242"></span>                    {
  {/if}}
<span id="line243"></span>                {
  {/if}}
<span id="line244"></span>            </span><span></<span></span>p</span><span>>
<span id="line245"></span>        </span><span></<span></span>a</span><span>>
<span id="line246"></span>        </span><span></<span></span>l</span><span>i>
<span id="line247"></span>  </span><span></<span class="end-tag">script</span>></span><span>
<span id="line248"></span>
<span id="line249"></span>
<span id="line250"></span>
<span id="line251"></span>
<span id="line252"></span>    </span><span><<span class="start-tag">script</span> <span class="attribute-name">src</span>="<a class="attribute-value" href="view-source:https://img3.doubanio.com/dae/accounts/resources/094108a/movie/bundle.js">//img3.doubanio.com/dae/accounts/resources/094108a/movie/bundle.js</a>" <span class="attribute-name">defer</span>="<a class="attribute-value">defer</a>"></span><span></span><span></<span class="end-tag">script</span>></span><span>
<span id="line253"></span>
<span id="line254"></span>
<span id="line255"></span>
<span id="line256"></span>
<span id="line257"></span>
<span id="line258"></span>
<span id="line259"></span>  
<span id="line260"></span>  </span><span><<span class="start-tag">div</span> <span class="attribute-name">id</span>="<a class="attribute-value">wrapper</a>" <span class="attribute-name">class</span>="<a class="attribute-value">movie-content review-wrapper</a>"></span><span>
<span id="line261"></span>    
<span id="line262"></span>
<span id="line263"></span>    
<span id="line264"></span>  </span><span><<span class="start-tag">div</span> <span class="attribute-name">id</span>="<a class="attribute-value">content</a>"></span><span>
<span id="line265"></span>    
<span id="line266"></span>    </span><span><<span class="start-tag">h1</span>></span><span>霸王别姬的影评 (5170)</span><span></<span class="end-tag">h1</span>></span><span>
<span id="line267"></span>
<span id="line268"></span>    </span><span><<span class="start-tag">div</span> <span class="attribute-name">class</span>="<a class="attribute-value">grid-16-8 clearfix</a>"></span><span>
<span id="line269"></span>      
<span id="line270"></span>      
<span id="line271"></span>      </span><span><<span class="start-tag">div</span> <span class="attribute-name">class</span>="<a class="attribute-value">article</a>"></span><span>
<span id="line272"></span>        
<span id="line273"></span>  
<span id="line274"></span>    </span><span><<span class="start-tag">ul</span> <span class="attribute-name">class</span>="<a class="attribute-value">top-tab clearfix</a>"></span><span>
<span id="line275"></span>              
<span id="line276"></span>  
<span id="line277"></span>  </span><span><<span class="start-tag">li</span> <span class="attribute-name">class</span>="<a class="attribute-value"> selected</a>"></span><span>    </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value">javascript:;</a>"></span><span>      </span><span><<span class="start-tag">span</span>></span><span>最受欢迎的</span><span></<span class="end-tag">span</span>></span><span>    </span><span></<span class="end-tag">a</span>></span><span>  </span><span></<span class="end-tag">li</span>></span><span>
<span id="line278"></span>
<span id="line279"></span>              
<span id="line280"></span>  
<span id="line281"></span>  </span><span><<span class="start-tag">li</span> <span class="attribute-name">class</span>="<a class="attribute-value"></a>"></span><span>    </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://movie.douban.com/subject/1291546/reviews?sort=time">?sort=time</a>"></span><span>      </span><span><<span class="start-tag">span</span>></span><span>最新发布的</span><span></<span class="end-tag">span</span>></span><span>    </span><span></<span class="end-tag">a</span>></span><span>  </span><span></<span class="end-tag">li</span>></span><span>
<span id="line282"></span>
<span id="line283"></span>
<span id="line284"></span>      
<span id="line285"></span>        </span><span><<span class="start-tag">li</span> <span class="attribute-name">class</span>="<a class="attribute-value">dropdown</a>"></span><span>          </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value">javascript:;</a>" <span class="attribute-name">class</span>="<a class="attribute-value"></a>"></span><span></span><span><<span class="start-tag">span</span>></span><span>按评星查看</span><span></<span class="end-tag">span</span>></span><span></span><span></<span class="end-tag">a</span>></span><span>
<span id="line286"></span>          </span><span><<span class="start-tag">ul</span> <span class="attribute-name">class</span>="<a class="attribute-value">droplist</a>"></span><span>
<span id="line287"></span>            </span><span><<span class="start-tag">li</span> <span class="attribute-name">class</span>="<a class="attribute-value">rating</a>"></span><span>              </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://movie.douban.com/subject/1291546/reviews?rating=">?rating=</a>"></span><span>                全部 (5170)              </span><span></<span class="end-tag">a</span>></span><span>            </span><span></<span class="end-tag">li</span>></span><span>
<span id="line288"></span>            </span><span><<span class="start-tag">li</span> <span class="attribute-name">class</span>="<a class="attribute-value">rating5</a>"></span><span>              </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://movie.douban.com/subject/1291546/reviews?rating=5">?rating=5</a>"></span><span>                给5星的评论 (4308)              </span><span></<span class="end-tag">a</span>></span><span>            </span><span></<span class="end-tag">li</span>></span><span>
<span id="line289"></span>            </span><span><<span class="start-tag">li</span> <span class="attribute-name">class</span>="<a class="attribute-value">rating4</a>"></span><span>              </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://movie.douban.com/subject/1291546/reviews?rating=4">?rating=4</a>"></span><span>                给4星的评论 (748)              </span><span></<span class="end-tag">a</span>></span><span>            </span><span></<span class="end-tag">li</span>></span><span>
<span id="line290"></span>            </span><span><<span class="start-tag">li</span> <span class="attribute-name">class</span>="<a class="attribute-value">rating3</a>"></span><span>              </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://movie.douban.com/subject/1291546/reviews?rating=3">?rating=3</a>"></span><span>                给3星的评论 (88)              </span><span></<span class="end-tag">a</span>></span><span>            </span><span></<span class="end-tag">li</span>></span><span>
<span id="line291"></span>            </span><span><<span class="start-tag">li</span> <span class="attribute-name">class</span>="<a class="attribute-value">rating2</a>"></span><span>              </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://movie.douban.com/subject/1291546/reviews?rating=2">?rating=2</a>"></span><span>                给2星的评论 (11)              </span><span></<span class="end-tag">a</span>></span><span>            </span><span></<span class="end-tag">li</span>></span><span>
<span id="line292"></span>            </span><span><<span class="start-tag">li</span> <span class="attribute-name">class</span>="<a class="attribute-value">rating1</a>"></span><span>              </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://movie.douban.com/subject/1291546/reviews?rating=1">?rating=1</a>"></span><span>                给1星的评论 (11)              </span><span></<span class="end-tag">a</span>></span><span>            </span><span></<span class="end-tag">li</span>></span><span>
<span id="line293"></span>          </span><span></<span class="end-tag">ul</span>></span><span>
<span id="line294"></span>        </span><span></<span class="end-tag">li</span>></span><span>
<span id="line295"></span>
<span id="line296"></span>    </span><span></<span class="end-tag">ul</span>></span><span>
<span id="line297"></span>  
<span id="line298"></span>
<span id="line299"></span>
<span id="line300"></span>
<span id="line301"></span></span><span><<span class="start-tag">div</span> <span class="attribute-name">class</span>="<a class="attribute-value">review-list  </a>"></span><span>
<span id="line302"></span>        
<span id="line303"></span>    
<span id="line304"></span>    
<span id="line305"></span>        
<span id="line306"></span>    
<span id="line307"></span>    </span><span><<span class="start-tag">div</span> <span class="attribute-name">xmlns:v</span>="<a class="attribute-value">http://rdf.data-vocabulary.org/#</a>" <span class="attribute-name">typeof</span>="<a class="attribute-value">v:Review</a>" <span class="attribute-name">data-cid</span>="<a class="attribute-value">1380398</a>"></span><span>
<span id="line308"></span>        </span><span><<span class="start-tag">div</span> <span class="attribute-name">class</span>="<a class="attribute-value">main review-item</a>" <span class="attribute-name">id</span>="<a class="attribute-value">1380398</a>"></span><span>
<span id="line309"></span>        
<span id="line310"></span>            
<span id="line311"></span>    
<span id="line312"></span>    </span><span><<span class="start-tag">header</span> <span class="attribute-name">class</span>="<a class="attribute-value">main-hd</a>"></span><span>
<span id="line313"></span>        </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://www.douban.com/people/mihiro/">https://www.douban.com/people/mihiro/</a>" <span class="attribute-name">class</span>="<a class="attribute-value">avator</a>"></span><span>
<span id="line314"></span>            </span><span><<span class="start-tag">img</span> <span class="attribute-name">width</span>="<a class="attribute-value">24</a>" <span class="attribute-name">height</span>="<a class="attribute-value">24</a>" <span class="attribute-name">src</span>="<a class="attribute-value" href="view-source:https://img3.doubanio.com/icon/u1588315-5.jpg">https://img3.doubanio.com/icon/u1588315-5.jpg</a>"></span><span>
<span id="line315"></span>        </span><span></<span class="end-tag">a</span>></span><span>
<span id="line316"></span>
<span id="line317"></span>        </span><span><<span class="start-tag">a</span> <span class="attribute-name">href</span>="<a class="attribute-value" href="view-source:https://www.douban.com/people/mihiro/">https://www.douban.com/people/mihiro/</a>" <span class="attribute-name">property</span>="<a class="attribute-value">v:reviewer</a>" <span class="attribute-name">class</span>="<a class="attribute-value">name</a>"></span><span>陈野犁</span><span></<span class="end-tag">a</span>></span><span>
<span id="line318"></span>
<span id="line319"></span>            </span><span><<span class="start-tag">span</span> <span class="attribute-name">property</span>="<a class="attribute-value">v:rating</a>" <span class="attribute-name">class</span>="<a class="
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值