Python 之 小白爬虫

本文展示了如何使用Python的requests和lxml库爬取并解析微博热搜榜的内容,包括热门话题、关键词和相关热度。内容中列举了当前的热搜排名,如'我国2030年前后实施木星系环绕探测'、'湖北取消除武汉外其他地区落户限制'等,以及对应的热度标志。
摘要由CSDN通过智能技术生成

 

设置环境

import requests
from lxml import etree #lxml解析库的etree方法

爬取微博热搜榜

url = 'https://s.weibo.com/top/summary?Refer=top_hot&topnav=1&wvr=6'
html = requests.get(url).content
print(html)
#先用.content方法再用etree.HTML(html)方法,不然报错
#lxml.etree.HTML处理网页源代码会默认修改编码,导致打印出来的内容为乱码,正确的编码为utf-8

得到网页内容如下

b'<!DOCTYPE html>\n<html>\n<head>\n   
 <meta charset="utf-8">\n  
  <meta http-equiv="X-UA-Compatible" content="IE=edge"/>\n  
  <meta name="renderer" content="webkit"/>\n  
  <meta name="viewport" content="initial-scale=1,minimum-scale=1"/>\n    
<title>\xe5\xbe\xae\xe5\x8d\x9a\xe6\x90\x9c\xe7\xb4\xa2-\xe7\x83\xad\xe6\x90\x9c\xe6\xa6\x9c</title>\n  
  <link href="//img.t.sinajs.cn/t4/appstyle/searchpc/css/pc/css/video.css?version=202106011432" rel="stylesheet"/>\n   
 <link href="//img.t.sinajs.cn/t4/appstyle/searchpc/css/pc/css/global.css?version=202106011432" rel="stylesheet"/>\n   
 <link href="//img.t.sinajs.cn/t4/appstyle/searchpc/css/pc/css/module.css?version=202106011432" rel="stylesheet"/>\n    
<link href="//img.t.sinajs.cn/t4/appstyle/searchpc/css/pc/css/page.css?version=202106011432" rel="stylesheet"/>\n   
 <link href="//img.t.sinajs.cn/t4/appstyle/searchpc/css/pc/css/card.css?version=202106011432" rel="stylesheet"/>\n    <link href="//img.t.sinajs.cn/t4/appstyle/searchpc/css/pc/css/css_v6/layer/layer_show_pic.css?version=202106011432"\n          rel="stylesheet"/>\n    \n    <script type="text/javascript">\n        var $PHOTO_TAGS=[]\n        var $CONFIG = {};\n        $CONFIG[\'islogin\'] = \'0\';\n        $CONFIG[\'uid\'] = \'0\';\n        $CONFIG[\'entry\'] = \'weisousuo\';\n        $CONFIG[\'setCover\'] = 1; //ie6hack\n        $CONFIG[\'version\'] = \'202106011432\';\n        $CONFIG[\'bigpipe\'] = \'false\';\n        $CONFIG[\'timeDiff\'] = (new Date() - 1623511879000);\n        $CONFIG[\'product\'] = \'search\';\n        $CONFIG[\'pageid\'] = \'top\';\n        $CONFIG[\'skin\'] = \'\';\n        $CONFIG[\'lang\'] = \'zh-cn\';\n        $CONFIG[\'jsPath\'] = \'//jstest.t.sinajs.cn/t4/\';\n        $CONFIG[\'cssPath\'] = \'//img.t.sinajs.cn/t4/\';\n        $CONFIG[\'imgPath\'] = \'//img.t.sinajs.cn/t4/\';\n        $CONFIG[\'servertime\'] = 1623511879;\n        $CONFIG[\'ad_url_jump\'] = \'\';\n        $CONFIG[\'$webim\'] = 0; //1;\n        $CONFIG[\'mJsPath\'] = [\'https://js{n}.t.sinajs.cn/t4/\', 1, 2];\n        $CONFIG[\'mCssPath\'] = [\'https://img{n}.t.sinajs.cn/t4/\', 1, 2];\n        $CONFIG[\'s_domain\'] = \'//s.weibo.com\';\n        $CONFIG[\'isAuto\'] = 0;//0\xe8\x87\xaa\xe5\x8a\xa8\xe6\x92\xad\xe6\x94\xbe\n    </script>\n    \n    \n    <script src="//js.t.sinajs.cn/t5/pack/js/bootstrap.js"></script>\n</head>\n<body class="wbs-hotrank">\n<div class="m-main">\n    <!--\xe6\x90\x9c\xe7\xb4\xa2-->\n<div class="m-search" id="pl_feedtop_top">\n    <div class="logo"><a href="/" class="logo_img"></a></div>\n    <div class="searchbox" node-type="searchBar">\n    <div class="search-input">\n        <input type="text" node-type="text" maxlength="40" autocomplete="off" value=""/>\n        <div class="m-sug-list" node-type="suggestbox">\n        </div>\n    </div>\n    <button class="s-btn-b" node-type="submit" >\xe6\x90\x9c\xe7\xb4\xa2</button>\n</div>\n    </div>\n<!--/\xe6\x90\x9c\xe7\xb4\xa2-->\n    <!--\xe5\x86\x85\xe5\xae\xb9 aa-->\n    <div class="m-wrap" id="plc_main">\n        <div class="menu">\n            <a href="summary?cate=realtimehot" title="\xe7\x83\xad\xe6\x90\x9c\xe6\xa6\x9c" class="cur">\xe7\x83\xad\xe6\x90\x9c\xe6\xa6\x9c</a>\n            <a href="summary?cate=socialevent" title="\xe8\xa6\x81\xe9\x97\xbb\xe6\xa6\x9c">\xe8\xa6\x81\xe9\x97\xbb\xe6\xa6\x9c</a>\n            <a href="summary?cate=total&key=friends" title="\xe5\xa5\xbd\xe5\x8f\x8b\xe6\x90\x9c">\xe5\xa5\xbd\xe5\x8f\x8b\xe6\x90\x9c</a>\n        </div>\n        <div class="data" id="pl_top_realtimehot">\n            <table>\n                <thead>\n                <tr class="thead_tr">\n                    <th class="th-01">\xe5\xba\x8f\xe5\x8f\xb7</th>\n                    <th class="th-02">\xe5\x85\xb3\xe9\x94\xae\xe8\xaf\x8d</th>\n                    <th class="th-03"></th>\n                </tr>\n                </thead>\n                <tbody>\n                                                        <tr class="">\n                        <td class="td-01"><i class="icon-top"></i></td>\n                        <td class="td-02">\n                            <a href="/weibo?q=%23%E6%88%91%E5%9B%BD2030%E5%B9%B4%E5%89%8D%E5%90%8E%E5%AE%9E%E6%96%BD%E6%9C%A8%E6%98%9F%E7%B3%BB%E7%8E%AF%E7%BB%95%E6%8E%A2%E6%B5%8B%23&Refer=new_time" target="_blank">\xe6\x88\x91\xe5\x9b\xbd2030\xe5\xb9\xb4\xe5\x89\x8d\xe5\x90\x8e\xe5\xae\x9e\xe6\x96\xbd\xe6\x9c\xa8\xe6\x98\x9f\xe7\xb3\xbb\xe7\x8e\xaf\xe7\xbb\x95\xe6\x8e\xa2\xe6\xb5\x8b</a>\n                        </td>\n                        <td class="td-03"><i class="icon-txt icon-txt-hot">\xe7\x83\xad</i></td>\n                    </tr>\n                                                                                                                        <tr class="">\n                                                        <td class="td-01 ranktop">1</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E6%B9%96%E5%8C%97%E5%8F%96%E6%B6%88%E9%99%A4%E6%AD%A6%E6%B1%89%E5%A4%96%E5%85%B6%E4%BB%96%E5%9C%B0%E5%8C%BA%E8%90%BD%E6%88%B7%E9%99%90%E5%88%B6%23&Refer=top" target="_blank">\xe6\xb9\x96\xe5\x8c\x97\xe5\x8f\x96\xe6\xb6\x88\xe9\x99\xa4\xe6\xad\xa6\xe6\xb1\x89\xe5\xa4\x96\xe5\x85\xb6\xe4\xbb\x96\xe5\x9c\xb0\xe5\x8c\xba\xe8\x90\xbd\xe6\x88\xb7\xe9\x99\x90\xe5\x88\xb6</a>\n                                                                <span>2305885</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">2</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%E5%91%A8%E4%B9%9F%20%E5%86%B7%E8%84%B8%E7%BE%8E%E5%A5%B3&Refer=top" target="_blank">\xe5\x91\xa8\xe4\xb9\x9f \xe5\x86\xb7\xe8\x84\xb8\xe7\xbe\x8e\xe5\xa5\xb3</a>\n                                                                <span>1744161</span>\n                                <img src="//img.t.sinajs.cn/t4/appstyle/expression/ext/normal/6e/2018new_leimu_org.png" title="[\xe6\xb3\xaa]" alt="[\xe6\xb3\xaa]" class="face" />                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-boil">\xe6\xb2\xb8</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">3</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%2390%E5%90%8E%E5%A5%B3%E7%94%9F%E8%BE%9E%E8%81%8C%E8%B9%AC%E4%B8%89%E8%BD%AE%E5%8D%96%E5%A5%B6%E8%8C%B6%23&Refer=top" target="_blank">90\xe5\x90\x8e\xe5\xa5\xb3\xe7\x94\x9f\xe8\xbe\x9e\xe8\x81\x8c\xe8\xb9\xac\xe4\xb8\x89\xe8\xbd\xae\xe5\x8d\x96\xe5\xa5\xb6\xe8\x8c\xb6</a>\n                                                                <span>1508890</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">4</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E5%88%98%E6%B5%A9%E5%AD%98%E7%9A%84%E7%9C%BC%E7%9D%9B%E5%83%8F%E5%B0%8F%E9%B9%BF%23&Refer=top" target="_blank">\xe5\x88\x98\xe6\xb5\xa9\xe5\xad\x98\xe7\x9a\x84\xe7\x9c\xbc\xe7\x9d\x9b\xe5\x83\x8f\xe5\xb0\x8f\xe9\xb9\xbf</a>\n                                                                <span>1381534</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-boil">\xe6\xb2\xb8</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">5</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E6%9D%8E%E9%9B%AA%E7%90%B4%E8%BE%A3%E7%9B%AE%E6%B4%8B%E5%AD%90%E5%90%90%E6%A7%BD%E6%A1%83%E8%8A%B1%E5%9D%9E%23&Refer=top" target="_blank">\xe6\x9d\x8e\xe9\x9b\xaa\xe7\x90\xb4\xe8\xbe\xa3\xe7\x9b\xae\xe6\xb4\x8b\xe5\xad\x90\xe5\x90\x90\xe6\xa7\xbd\xe6\xa1\x83\xe8\x8a\xb1\xe5\x9d\x9e</a>\n                                                                <span>975983</span>\n                                                            </td>\n                            <td class="td-03"></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">6</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E5%8C%97%E4%BA%AC%E4%B8%80%E5%AE%B6%E4%B8%89%E5%8F%A3%E7%88%AC%E9%87%8E%E9%95%BF%E5%9F%8E%E8%A2%AB%E5%9B%B0%23&Refer=top" target="_blank">\xe5\x8c\x97\xe4\xba\xac\xe4\xb8\x80\xe5\xae\xb6\xe4\xb8\x89\xe5\x8f\xa3\xe7\x88\xac\xe9\x87\x8e\xe9\x95\xbf\xe5\x9f\x8e\xe8\xa2\xab\xe5\x9b\xb0</a>\n                                                                <span>963427</span>\n                                                            </td>\n                            <td class="td-03"></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop" style="font-style: normal;font-size: 15px">\xe2\x80\xa2</td>\n                                                        <td class="td-02">\n                                                                                                <a href_to="/weibo?q=%23%E7%9C%8B%E7%83%AD%E5%B8%A6%E5%BE%80%E4%BA%8B%E4%B8%8D%E6%95%A2%E5%A4%A7%E5%A3%B0%E5%91%BC%E5%90%B8%23&topic_ad=1&Refer=top" href="javascript:void(0);" suda-data="key=tblog_search_weibo&value=seqid:16235118792490289037|type:0|t:0|pos:1-0|q:|ext:click:ad_hotword_realtime,adid:123270" action-data="ad_id=123270&num=7&&cate=PC_realtime" action-type="realtimehot_ad" word="\xe7\x9c\x8b\xe7\x83\xad\xe5\xb8\xa6\xe5\xbe\x80\xe4\xba\x8b\xe4\xb8\x8d\xe6\x95\xa2\xe5\xa4\xa7\xe5\xa3\xb0\xe5\x91\xbc\xe5\x90\xb8" url_show="" url_click="" url2_show="" url2_click="">\xe7\x9c\x8b\xe7\x83\xad\xe5\xb8\xa6\xe5\xbe\x80\xe4\xba\x8b\xe4\xb8\x8d\xe6\x95\xa2\xe5\xa4\xa7\xe5\xa3\xb0\xe5\x91\xbc\xe5\x90\xb8</a>\n                                                                <span></span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-recommend">\xe8\x8d\x90</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">7</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%E4%B8%AD%E5%9B%BD%E5%A5%B3%E6%8E%92%20%E8%8D%B7%E5%85%B0%E5%A5%B3%E6%8E%92&Refer=top" target="_blank">\xe4\xb8\xad\xe5\x9b\xbd\xe5\xa5\xb3\xe6\x8e\x92 \xe8\x8d\xb7\xe5\x85\xb0\xe5\xa5\xb3\xe6\x8e\x92</a>\n                                                                <span>784098</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">8</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23Wink%E7%A6%BB%E8%B0%B1%23&Refer=top" target="_blank">Wink\xe7\xa6\xbb\xe8\xb0\xb1</a>\n                                                                <span>711280</span>\n                                                            </td>\n                            <td class="td-03"></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">9</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%E6%9C%B1%E5%A9%B7%E5%9B%9E%E6%9D%A5%E4%BA%86&Refer=top" target="_blank">\xe6\x9c\xb1\xe5\xa9\xb7\xe5\x9b\x9e\xe6\x9d\xa5\xe4\xba\x86</a>\n                                                                <span>698996</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">10</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E4%BD%9B%E5%B1%B1%E6%9C%BA%E5%9C%BA%E6%9A%82%E5%81%9C%E8%BF%90%E8%90%A5%23&Refer=top" target="_blank">\xe4\xbd\x9b\xe5\xb1\xb1\xe6\x9c\xba\xe5\x9c\xba\xe6\x9a\x82\xe5\x81\x9c\xe8\xbf\x90\xe8\x90\xa5</a>\n                                                                <span>698195</span>\n                                                            </td>\n                            <td class="td-03"></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">11</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E6%98%93%E7%83%8A%E5%8D%83%E7%8E%BA%E5%B9%B4%E5%BA%A6%E6%9C%80%E5%8F%97%E6%AC%A2%E8%BF%8E%E6%BC%94%E5%91%98%23&Refer=top" target="_blank">\xe6\x98\x93\xe7\x83\x8a\xe5\x8d\x83\xe7\x8e\xba\xe5\xb9\xb4\xe5\xba\xa6\xe6\x9c\x80\xe5\x8f\x97\xe6\xac\xa2\xe8\xbf\x8e\xe6\xbc\x94\xe5\x91\x98</a>\n                                                                <span>693750</span>\n                                <img src="//img.t.sinajs.cn/t4/appstyle/expression/ext/normal/39/moren_dacall02_org.png" title="[\xe6\x89\x93call]" alt="[\xe6\x89\x93call]" class="face" />                            </td>\n                            <td class="td-03"></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">12</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E9%BB%91%E9%BE%99%E6%B1%9F%E4%B8%80%E6%B2%B3%E8%BE%B9%E5%8F%91%E7%8E%B0AWM%E7%8B%99%E5%87%BB%E6%9E%AA%23&Refer=top" target="_blank">\xe9\xbb\x91\xe9\xbe\x99\xe6\xb1\x9f\xe4\xb8\x80\xe6\xb2\xb3\xe8\xbe\xb9\xe5\x8f\x91\xe7\x8e\xb0AWM\xe7\x8b\x99\xe5\x87\xbb\xe6\x9e\xaa</a>\n                                                                <span>693222</span>\n                                                            </td>\n                            <td class="td-03"></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">13</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E6%9C%B1%E4%B8%80%E9%BE%99%E5%80%AA%E5%A6%AE%E5%B9%B4%E5%BA%A6%E8%A1%A8%E7%8E%B0%E5%8A%9B%E6%BC%94%E5%91%98%23&Refer=top" target="_blank">\xe6\x9c\xb1\xe4\xb8\x80\xe9\xbe\x99\xe5\x80\xaa\xe5\xa6\xae\xe5\xb9\xb4\xe5\xba\xa6\xe8\xa1\xa8\xe7\x8e\xb0\xe5\x8a\x9b\xe6\xbc\x94\xe5\x91\x98</a>\n                                                                <span>689689</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">14</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E5%85%A8%E6%A0%A124%E5%B0%8F%E6%97%B6%E7%AD%B9%E5%A4%9F%E6%82%A3%E7%97%85%E5%90%8C%E5%AD%A690%E5%A4%A9%E7%94%A8%E8%A1%80%E9%87%8F%23&Refer=top" target="_blank">\xe5\x85\xa8\xe6\xa0\xa124\xe5\xb0\x8f\xe6\x97\xb6\xe7\xad\xb9\xe5\xa4\x9f\xe6\x82\xa3\xe7\x97\x85\xe5\x90\x8c\xe5\xad\xa690\xe5\xa4\xa9\xe7\x94\xa8\xe8\xa1\x80\xe9\x87\x8f</a>\n                                                                <span>687558</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">15</td>\n                                                        <td class="td-02">\n                                                                                                <a href_to="/weibo?q=%23%E7%AB%A0%E5%AD%90%E6%80%A1%E6%B7%B1V%E8%96%84%E7%BA%B1%E7%A4%BC%E6%9C%8D%23&Refer=top" href="javascript:void(0);" suda-data="key=tblog_search_weibo&value=seqid:16235118792490289037|type:0|t:0|pos:1-0|q:|ext:click:ad_hotword_realtime,adid:123726" action-data="ad_id=123726&num=16&&cate=PC_realtime" action-type="realtimehot_ad" word="\xe7\xab\xa0\xe5\xad\x90\xe6\x80\xa1\xe6\xb7\xb1V\xe8\x96\x84\xe7\xba\xb1\xe7\xa4\xbc\xe6\x9c\x8d" url_show="" url_click="" url2_show="" url2_click="">\xe7\xab\xa0\xe5\xad\x90\xe6\x80\xa1\xe6\xb7\xb1V\xe8\x96\x84\xe7\xba\xb1\xe7\xa4\xbc\xe6\x9c\x8d</a>\n                                                                <span>687402</span>\n                                                            </td>\n                            <td class="td-03"></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">16</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E5%A5%B6%E5%A5%B6%E5%8F%97%E5%8A%A9%E5%90%8E%E7%AC%AC%E4%BA%8C%E5%B9%B4%E7%BB%99%E6%B6%88%E9%98%B2%E5%91%98%E9%80%81%E7%B2%BD%E5%AD%90%23&Refer=top" target="_blank">\xe5\xa5\xb6\xe5\xa5\xb6\xe5\x8f\x97\xe5\x8a\xa9\xe5\x90\x8e\xe7\xac\xac\xe4\xba\x8c\xe5\xb9\xb4\xe7\xbb\x99\xe6\xb6\x88\xe9\x98\xb2\xe5\x91\x98\xe9\x80\x81\xe7\xb2\xbd\xe5\xad\x90</a>\n                                                                <span>684422</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">17</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%E5%BC%A0%E7%BF%B0%E6%8B%92%E7%BB%9D%E5%8F%82%E5%8A%A0%E6%A1%83%E8%8A%B1%E5%9D%9E%E9%9B%86%E4%BD%93%E6%B4%BB%E5%8A%A8&Refer=top" target="_blank">\xe5\xbc\xa0\xe7\xbf\xb0\xe6\x8b\x92\xe7\xbb\x9d\xe5\x8f\x82\xe5\x8a\xa0\xe6\xa1\x83\xe8\x8a\xb1\xe5\x9d\x9e\xe9\x9b\x86\xe4\xbd\x93\xe6\xb4\xbb\xe5\x8a\xa8</a>\n                                                                <span>680511</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">18</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%E6%98%9F%E8%BE%B0%E5%A4%A7%E6%B5%B7&Refer=top" target="_blank">\xe6\x98\x9f\xe8\xbe\xb0\xe5\xa4\xa7\xe6\xb5\xb7</a>\n                                                                <span>677554</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">19</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E9%87%91%E9%9D%96%E7%94%B7%E6%9C%8B%E5%8F%8B%23&Refer=top" target="_blank">\xe9\x87\x91\xe9\x9d\x96\xe7\x94\xb7\xe6\x9c\x8b\xe5\x8f\x8b</a>\n                                                                <span>673577</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-hot">\xe7\x83\xad</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">20</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%E5%88%A9%E8%B7%AF%E4%BF%AE%20%E5%9B%9B%E5%85%AD%E7%BA%A7%E9%A2%84%E8%A8%80%E5%AE%B6&Refer=top" target="_blank">\xe5\x88\xa9\xe8\xb7\xaf\xe4\xbf\xae \xe5\x9b\x9b\xe5\x85\xad\xe7\xba\xa7\xe9\xa2\x84\xe8\xa8\x80\xe5\xae\xb6</a>\n                                                                <span>673493</span>\n                                <img src="//img.t.sinajs.cn/t4/appstyle/expression/ext/normal/a1/2018new_doge02_org.png" title="[doge]" alt="[doge]" class="face" />                            </td>\n                            <td class="td-03"></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">21</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E8%82%96%E6%88%98%E7%9B%B4%E6%92%AD%23&Refer=top" target="_blank">\xe8\x82\x96\xe6\x88\x98\xe7\x9b\xb4\xe6\x92\xad</a>\n                                                                <span>656073</span>\n                                                            </td>\n                            <td class="td-03"></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">22</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E5%A6%88%E5%A6%88%E8%BF%9E%E5%B0%8F%E9%A3%8E%E6%89%87%E9%83%BD%E7%B3%8A%E5%BC%84%23&Refer=top" target="_blank">\xe5\xa6\x88\xe5\xa6\x88\xe8\xbf\x9e\xe5\xb0\x8f\xe9\xa3\x8e\xe6\x89\x87\xe9\x83\xbd\xe7\xb3\x8a\xe5\xbc\x84</a>\n                                                                <span>585141</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">23</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E8%99%9E%E4%B9%A6%E6%AC%A3%E5%8F%91%E6%96%87%E5%91%8A%E5%88%AB%E5%88%9D%E7%A4%BC%23&Refer=top" target="_blank">\xe8\x99\x9e\xe4\xb9\xa6\xe6\xac\xa3\xe5\x8f\x91\xe6\x96\x87\xe5\x91\x8a\xe5\x88\xab\xe5\x88\x9d\xe7\xa4\xbc</a>\n                                                                <span>574441</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">24</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%E5%BF%AB%E4%B9%90%E5%A4%A7%E6%9C%AC%E8%90%A5&Refer=top" target="_blank">\xe5\xbf\xab\xe4\xb9\x90\xe5\xa4\xa7\xe6\x9c\xac\xe8\x90\xa5</a>\n                                                                <span>532329</span>\n                                <img src="//img.t.sinajs.cn/t4/appstyle/expression/ext/normal/4a/2018new_xiaoku_thumb.png" title="[\xe7\xac\x91cry]" alt="[\xe7\xac\x91cry]" class="face" />                            </td>\n                            <td class="td-03"></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">25</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E5%88%98%E9%9B%A8%E6%98%95%E6%95%AC%E9%85%92%E5%86%85%E5%8D%B7%23&Refer=top" target="_blank">\xe5\x88\x98\xe9\x9b\xa8\xe6\x98\x95\xe6\x95\xac\xe9\x85\x92\xe5\x86\x85\xe5\x8d\xb7</a>\n                                                                <span>487017</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">26</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E5%A5%B3%E5%AD%90%E8%A2%AB%E9%AA%9731%E4%B8%87%E5%90%8E%E5%8F%88%E8%A2%AB%E5%90%8C%E4%B8%80%E4%BA%BA%E9%AA%974%E4%B8%87%23&Refer=top" target="_blank">\xe5\xa5\xb3\xe5\xad\x90\xe8\xa2\xab\xe9\xaa\x9731\xe4\xb8\x87\xe5\x90\x8e\xe5\x8f\x88\xe8\xa2\xab\xe5\x90\x8c\xe4\xb8\x80\xe4\xba\xba\xe9\xaa\x974\xe4\xb8\x87</a>\n                                                                <span>455467</span>\n                                                            </td>\n                            <td class="td-03"></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">27</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E8%A2%AB%E8%AE%A8%E5%8E%8C%E7%9A%84%E7%94%B7%E5%90%8C%E4%BA%8B%E8%BA%AB%E6%9D%90%E7%BE%9E%E8%BE%B1%23&Refer=top" target="_blank">\xe8\xa2\xab\xe8\xae\xa8\xe5\x8e\x8c\xe7\x9a\x84\xe7\x94\xb7\xe5\x90\x8c\xe4\xba\x8b\xe8\xba\xab\xe6\x9d\x90\xe7\xbe\x9e\xe8\xbe\xb1</a>\n                                                                <span>425997</span>\n                                                            </td>\n                            <td class="td-03"></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">28</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E4%B8%A5%E6%B5%A9%E7%BF%94%E8%B4%BA%E5%B3%BB%E9%9C%96%E6%80%8E%E4%B9%88%E4%BB%80%E4%B9%88%E9%83%BD%E4%BC%9A%E8%B7%B3%23&Refer=top" target="_blank">\xe4\xb8\xa5\xe6\xb5\xa9\xe7\xbf\x94\xe8\xb4\xba\xe5\xb3\xbb\xe9\x9c\x96\xe6\x80\x8e\xe4\xb9\x88\xe4\xbb\x80\xe4\xb9\x88\xe9\x83\xbd\xe4\xbc\x9a\xe8\xb7\xb3</a>\n                                                                <span>411061</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">29</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23THE9%E6%96%B0%E6%AD%8C%E9%A6%96%E7%A7%80%23&Refer=top" target="_blank">THE9\xe6\x96\xb0\xe6\xad\x8c\xe9\xa6\x96\xe7\xa7\x80</a>\n                                                                <span>393139</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">30</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E7%B2%BD%E5%AD%90%E7%95%8C%E5%A4%A9%E8%8A%B1%E6%9D%BF%23&Refer=top" target="_blank">\xe7\xb2\xbd\xe5\xad\x90\xe7\x95\x8c\xe5\xa4\xa9\xe8\x8a\xb1\xe6\x9d\xbf</a>\n                                                                <span>384930</span>\n                                                            </td>\n                            <td class="td-03"></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">31</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%E4%BA%91%E5%8D%97%E7%9B%88%E6%B1%9F5.0%E7%BA%A7%E5%9C%B0%E9%9C%87&Refer=top" target="_blank">\xe4\xba\x91\xe5\x8d\x97\xe7\x9b\x88\xe6\xb1\x9f5.0\xe7\xba\xa7\xe5\x9c\xb0\xe9\x9c\x87</a>\n                                                                <span>382231</span>\n                                                            </td>\n                            <td class="td-03"></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">32</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E5%A5%B3%E5%AD%A6%E5%91%98%E5%A4%87%E8%80%83%E7%A7%91%E7%9B%AE%E4%BA%8C%E6%97%A0%E5%AE%9E%E7%89%A9%E7%BB%83%E8%BD%A6%23&Refer=top" target="_blank">\xe5\xa5\xb3\xe5\xad\xa6\xe5\x91\x98\xe5\xa4\x87\xe8\x80\x83\xe7\xa7\x91\xe7\x9b\xae\xe4\xba\x8c\xe6\x97\xa0\xe5\xae\x9e\xe7\x89\xa9\xe7\xbb\x83\xe8\xbd\xa6</a>\n                                                                <span>380342</span>\n                                                            </td>\n                            <td class="td-03"></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">33</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%E9%BA%A6%E7%94%B0%E9%9F%B3%E4%B9%90%E8%8A%82&Refer=top" target="_blank">\xe9\xba\xa6\xe7\x94\xb0\xe9\x9f\xb3\xe4\xb9\x90\xe8\x8a\x82</a>\n                                                                <span>378696</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">34</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%E7%AB%AF%E5%8D%88%E5%A5%87%E5%A6%99%E6%B8%B8&Refer=top" target="_blank">\xe7\xab\xaf\xe5\x8d\x88\xe5\xa5\x87\xe5\xa6\x99\xe6\xb8\xb8</a>\n                                                                <span>356762</span>\n                                                            </td>\n                            <td class="td-03"></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">35</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E5%AE%98%E6%96%B9%E9%80%9A%E6%8A%A57%E4%BA%BA%E6%B2%B3%E8%BE%B9%E5%96%9D%E9%85%924%E4%BA%BA%E6%BA%BA%E4%BA%A1%23&Refer=top" target="_blank">\xe5\xae\x98\xe6\x96\xb9\xe9\x80\x9a\xe6\x8a\xa57\xe4\xba\xba\xe6\xb2\xb3\xe8\xbe\xb9\xe5\x96\x9d\xe9\x85\x924\xe4\xba\xba\xe6\xba\xba\xe4\xba\xa1</a>\n                                                                <span>333384</span>\n                                                            </td>\n                            <td class="td-03"></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">36</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E4%BA%91%E5%8D%97%E5%BE%B7%E5%AE%8F%E5%B7%9E%E5%9C%B0%E9%9C%87%E6%8F%90%E5%89%8D24%E7%A7%92%E9%A2%84%E8%AD%A6%23&Refer=top" target="_blank">\xe4\xba\x91\xe5\x8d\x97\xe5\xbe\xb7\xe5\xae\x8f\xe5\xb7\x9e\xe5\x9c\xb0\xe9\x9c\x87\xe6\x8f\x90\xe5\x89\x8d24\xe7\xa7\x92\xe9\xa2\x84\xe8\xad\xa6</a>\n                                                                <span>321310</span>\n                                                            </td>\n                            <td class="td-03"></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">37</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E4%BB%8B%E6%84%8F%E5%85%AC%E5%85%B1%E5%9C%BA%E5%90%88%E5%9D%90%E5%BC%82%E6%80%A7%E6%97%81%E8%BE%B9%E5%90%97%23&Refer=top" target="_blank">\xe4\xbb\x8b\xe6\x84\x8f\xe5\x85\xac\xe5\x85\xb1\xe5\x9c\xba\xe5\x90\x88\xe5\x9d\x90\xe5\xbc\x82\xe6\x80\xa7\xe6\x97\x81\xe8\xbe\xb9\xe5\x90\x97</a>\n                                                                <span>315900</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">38</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E5%A5%B3%E5%AD%90%E4%B8%BA%E8%AF%88%E9%AA%97%E6%8A%A5%E7%A0%94%E4%BF%AE%E7%8F%AD%E9%AA%97%E5%90%8C%E9%97%A880%E9%83%A8%E6%89%8B%E6%9C%BA%23&Refer=top" target="_blank">\xe5\xa5\xb3\xe5\xad\x90\xe4\xb8\xba\xe8\xaf\x88\xe9\xaa\x97\xe6\x8a\xa5\xe7\xa0\x94\xe4\xbf\xae\xe7\x8f\xad\xe9\xaa\x97\xe5\x90\x8c\xe9\x97\xa880\xe9\x83\xa8\xe6\x89\x8b\xe6\x9c\xba</a>\n                                                                <span>305918</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">39</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E7%AB%A0%E5%AD%90%E6%80%A1%E5%B9%B4%E5%BA%A6%E5%BD%B1%E5%93%8D%E5%8A%9B%E6%BC%94%E5%91%98%23&Refer=top" target="_blank">\xe7\xab\xa0\xe5\xad\x90\xe6\x80\xa1\xe5\xb9\xb4\xe5\xba\xa6\xe5\xbd\xb1\xe5\x93\x8d\xe5\x8a\x9b\xe6\xbc\x94\xe5\x91\x98</a>\n                                                                <span>300878</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">40</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E8%82%96%E6%88%98%E8%93%9D%E8%89%B2%E5%A4%8D%E5%8F%A4%E8%A1%AC%E8%A1%AB%23&Refer=top" target="_blank">\xe8\x82\x96\xe6\x88\x98\xe8\x93\x9d\xe8\x89\xb2\xe5\xa4\x8d\xe5\x8f\xa4\xe8\xa1\xac\xe8\xa1\xab</a>\n                                                                <span>216104</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">41</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%E4%B8%81%E9%9C%9E%E5%8F%AF%E7%88%B1&Refer=top" target="_blank">\xe4\xb8\x81\xe9\x9c\x9e\xe5\x8f\xaf\xe7\x88\xb1</a>\n                                                                <span>200558</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">42</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=Neny%E5%B8%A6%E4%B8%8D%E5%8A%A8&Refer=top" target="_blank">Neny\xe5\xb8\xa6\xe4\xb8\x8d\xe5\x8a\xa8</a>\n                                                                <span>187837</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">43</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E8%88%AA%E5%A4%A9%E5%91%98%E6%99%AF%E6%B5%B7%E9%B9%8F%E8%B0%88%E4%B8%89%E6%AC%A1%E9%A3%9E%E5%A4%A9%23&Refer=top" target="_blank">\xe8\x88\xaa\xe5\xa4\xa9\xe5\x91\x98\xe6\x99\xaf\xe6\xb5\xb7\xe9\xb9\x8f\xe8\xb0\x88\xe4\xb8\x89\xe6\xac\xa1\xe9\xa3\x9e\xe5\xa4\xa9</a>\n                                                                <span>181635</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">44</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E5%8F%91%E8%A1%A8%E5%A4%9A%E9%85%8D%E5%81%B6%E8%A8%80%E8%AE%BA%E6%95%99%E5%B8%88%E8%A2%AB%E6%9A%82%E5%81%9C%E6%95%99%E5%AD%A6%23&Refer=top" target="_blank">\xe5\x8f\x91\xe8\xa1\xa8\xe5\xa4\x9a\xe9\x85\x8d\xe5\x81\xb6\xe8\xa8\x80\xe8\xae\xba\xe6\x95\x99\xe5\xb8\x88\xe8\xa2\xab\xe6\x9a\x82\xe5\x81\x9c\xe6\x95\x99\xe5\xad\xa6</a>\n                                                                <span>180679</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">45</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E7%96%AB%E8%8B%97%E6%8E%A5%E7%A7%8D%E7%A4%BE%E6%AD%BB%E7%8E%B0%E5%9C%BA%23&Refer=top" target="_blank">\xe7\x96\xab\xe8\x8b\x97\xe6\x8e\xa5\xe7\xa7\x8d\xe7\xa4\xbe\xe6\xad\xbb\xe7\x8e\xb0\xe5\x9c\xba</a>\n                                                                <span>175939</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">46</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=eStar%E8%AE%A9%E4%BA%8C%E8%BF%BD%E5%9B%9B&Refer=top" target="_blank">eStar\xe8\xae\xa9\xe4\xba\x8c\xe8\xbf\xbd\xe5\x9b\x9b</a>\n                                                                <span>175140</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">47</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E5%A4%AA%E7%99%BD%E5%B1%B1%E5%87%BA%E7%8E%B0%E8%90%BD%E7%9F%B3%E5%A4%A7%E9%87%8F%E6%B8%B8%E5%AE%A2%E6%BB%9E%E7%95%99%23&Refer=top" target="_blank">\xe5\xa4\xaa\xe7\x99\xbd\xe5\xb1\xb1\xe5\x87\xba\xe7\x8e\xb0\xe8\x90\xbd\xe7\x9f\xb3\xe5\xa4\xa7\xe9\x87\x8f\xe6\xb8\xb8\xe5\xae\xa2\xe6\xbb\x9e\xe7\x95\x99</a>\n                                                                <span>174987</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">48</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E7%AB%AF%E5%8D%88%E6%98%AF%E6%88%91%E5%9B%BD%E5%88%AB%E5%90%8D%E6%9C%80%E5%A4%9A%E7%9A%84%E4%BC%A0%E7%BB%9F%E8%8A%82%E6%97%A5%23&Refer=top" target="_blank">\xe7\xab\xaf\xe5\x8d\x88\xe6\x98\xaf\xe6\x88\x91\xe5\x9b\xbd\xe5\x88\xab\xe5\x90\x8d\xe6\x9c\x80\xe5\xa4\x9a\xe7\x9a\x84\xe4\xbc\xa0\xe7\xbb\x9f\xe8\x8a\x82\xe6\x97\xa5</a>\n                                                                <span>174851</span>\n                                                            </td>\n                            <td class="td-03"></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">49</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%E5%A8%81%E5%B0%94%E5%A3%AB%E6%88%98%E5%B9%B3%E7%91%9E%E5%A3%AB&Refer=top" target="_blank">\xe5\xa8\x81\xe5\xb0\x94\xe5\xa3\xab\xe6\x88\x98\xe5\xb9\xb3\xe7\x91\x9e\xe5\xa3\xab</a>\n                                                                <span>174069</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                                            <tr class="">\n                                                        <td class="td-01 ranktop">50</td>\n                                                        <td class="td-02">\n                                                                <a href="/weibo?q=%23%E7%AA%81%E7%84%B6%E5%90%AC%E6%87%82%E4%B8%80%E9%A6%96%E6%AD%8C%E6%98%AF%E4%BB%80%E4%B9%88%E4%BD%93%E9%AA%8C%23&Refer=top" target="_blank">\xe7\xaa\x81\xe7\x84\xb6\xe5\x90\xac\xe6\x87\x82\xe4\xb8\x80\xe9\xa6\x96\xe6\xad\x8c\xe6\x98\xaf\xe4\xbb\x80\xe4\xb9\x88\xe4\xbd\x93\xe9\xaa\x8c</a>\n                                                                <span>173123</span>\n                                                            </td>\n                            <td class="td-03"><i class="icon-txt icon-txt-new">\xe6\x96\xb0</i></td>\n                        </tr>\n                                                                            </tbody>\n            </table>\n        </div>\n    </div>\n    <!--/\xe5\x86\x85\xe5\xae\xb9-->\n\n    <script type="text/javascript" charset="UTF-8" src="//js.t.sinajs.cn/t4/apps/searchpc/js/pc/js/conf/base.js?version=202106011432"></script>\n    <script type="text/javascript" charset="UTF-8" src="//js.t.sinajs.cn/t4/apps/searchpc/js/pc/js/conf/common.js?version=202106011432"></script>\n    <script type="text/javascript" charset="UTF-8" src="//js.t.sinajs.cn/t4/apps/searchpc/js/pc/js/conf/summary.js?version=202106011432"></script>\n</div>\n<!--\xe8\x84\x9a\xe9\x83\xa8-->\n<div class="m-footer">\n    <div class="bottom">\n        <div class="m-outlink">\n            <div class="link">\n                <a href="http://ir.weibo.com/phoenix.zhtml?c=253076&p=irol-irhome" class="icon-wb" target="_blank" title="\xe5\x85\xb3\xe4\xba\x8e\xe5\xbe\xae\xe5\x8d\x9a">\xe5\x85\xb3\xe4\xba\x8e\xe5\xbe\xae\xe5\x8d\x9a</a>\n                <a href="https://kefu.weibo.com/" target="_blank" title="\xe5\xbe\xae\xe5\x8d\x9a\xe5\xb8\xae\xe5\x8a\xa9">\xe5\xbe\xae\xe5\x8d\x9a\xe5\xb8\xae\xe5\x8a\xa9</a>\n                <a href="https://s.weibo.com/weibo?q=%23%E5%BE%AE%E5%BB%BA%E8%AE%AE%23&bottomnav=1&wvr=6" target="_blank" title="\xe6\x84\x8f\xe8\xa7\x81\xe5\x8f\x8d\xe9\xa6\x88">\xe6\x84\x8f\xe8\xa7\x81\xe5\x8f\x8d\xe9\xa6\x88</a>\n                <a href="http://open.weibo.com/?bottomnav=1&wvr=5" target="_blank" title="\xe5\xbc\x80\xe6\x94\xbe\xe5\xb9\xb3\xe5\x8f\xb0">\xe5\xbc\x80\xe6\x94\xbe\xe5\xb9\xb3\xe5\x8f\xb0</a>\n                <a href="http://hr.weibo.com/?bottomnav=1&wvr=5" target="_blank" title="\xe5\xbe\xae\xe5\x8d\x9a\xe6\x8b\x9b\xe8\x81\x98">\xe5\xbe\xae\xe5\x8d\x9a\xe6\x8b\x9b\xe8\x81\x98</a>\n                <a href="http://news.sina.com.cn/guide/?bottomnav=1&wvr=5" target="_blank" title="\xe6\x96\xb0\xe6\xb5\xaa\xe7\xbd\x91\xe5\xaf\xbc\xe8\x88\xaa">\xe6\x96\xb0\xe6\xb5\xaa\xe7\xbd\x91\xe5\xaf\xbc\xe8\x88\xaa</a>\n                <a href="http://service.account.weibo.com/?bottomnav=1&wvr=5&is_redirected=1" target="_blank" title="\xe7\xa4\xbe\xe5\x8c\xba\xe7\xae\xa1\xe7\x90\x86\xe4\xb8\xad\xe5\xbf\x83">\xe7\xa4\xbe\xe5\x8c\xba\xe7\xae\xa1\xe7\x90\x86\xe4\xb8\xad\xe5\xbf\x83</a>\n                <a href="http://service.account.weibo.com/roles/gongyue?bottomnav=1&wvr=5&is_redirected=1" target="_blank" title="\xe5\xbe\xae\xe5\x8d\x9a\xe7\xa4\xbe\xe5\x8c\xba\xe5\x85\xac\xe7\xba\xa6">\xe5\xbe\xae\xe5\x8d\x9a\xe7\xa4\xbe\xe5\x8c\xba\xe5\x85\xac\xe7\xba\xa6</a>\n            </div>\n            <p class="copyright">\n                Copyright \xc2\xa9 2009-2021 WEIBO \xe5\x8c\x97\xe4\xba\xac\xe5\xbe\xae\xe6\xa2\xa6\xe5\x88\x9b\xe7\xa7\x91\xe7\xbd\x91\xe7\xbb\x9c\xe6\x8a\x80\xe6\x9c\xaf\xe6\x9c\x89\xe9\x99\x90\xe5\x85\xac\xe5\x8f\xb8\n                <a href="https://weibo.com/aj/static/jww.html" target="_blank">\xe4\xba\xac\xe7\xbd\x91\xe6\x96\x87[2011]0398-130\xe5\x8f\xb7</a>\n                <a href="http://www.miibeian.gov.cn" target="_blank" target="_blank">\xe4\xba\xacICP\xe5\xa4\x8712002058\xe5\x8f\xb7</a>\n                <!-- <select id="pl_language_language">\n                    <option value="zh-cn" selected="selected">\xe4\xb8\xad\xe6\x96\x87(\xe7\xae\x80\xe4\xbd\x93)</option>\n                    <option value="zh-tw">\xe4\xb8\xad\xe6\x96\x87(\xe7\xb9\x81\xe4\xbd\x93)</option>\n                </select> -->\n                </span>\n            </p>\n        </div>\n    </div>      \n    <!-- <script src="https://js.t.sinajs.cn/t5/pack/static/musicplayer/musicplayer_stk_v6.1.5.js"></script> -->\n    <script>\n    // //\xe8\xae\xbe\xe7\xbd\xae\xe7\x94\xa8\xe6\x88\xb7uid \xe7\x94\xa8\xe4\xba\x8e\xe5\x90\x8c\xe6\xad\xa5\xe8\xb5\x9e\xe7\x8a\xb6\xe6\x80\x81\n    // WEIBO_MUSIC_PLAYER.load({page_id:\'\'});\n    // //\xe7\x9b\x91\xe5\x90\xac\xe8\xb5\x9e\xe4\xba\x8b\xe4\xbb\xb6\n    // //\xe7\x9b\x91\xe5\x90\xac\xe5\x88\x86\xe4\xba\xab\xe4\xba\x8b\xe4\xbb\xb6\n    // WEIBO_MUSIC_PLAYER.on(\'share\', function (evt, song) {\n    //     alert(song.copy);\n    //     song //\xe6\xad\x8c\xe6\x9b\xb2\xe7\x9a\x84\xe6\x89\x80\xe6\x9c\x89\xe4\xbf\xa1\xe6\x81\xaf      \n    // });\n    </script>\n\n\n</div>\n<!--\xe8\x84\x9a\xe9\x83\xa8-->\n<!--\xe5\x9b\x9e\xe5\x88\xb0\xe9\xa1\xb6\xe9\x83\xa8-->\n<div id="pl_common_scrollToTop">\n    <div class="m-gotop" node-type="scrollToTop" style="display: none;">\n        <a href="javascript:void(0);" class="wbicon" >\xc3\x9a</a>\n    </div>\n</div>\n<!--/\xe5\x9b\x9e\xe5\x88\xb0\xe9\xa1\xb6\xe9\x83\xa8-->\n\n<script src="//js.t.sinajs.cn/t6/home/js/pl/top/topInit.js"></script>\n<script type="text/javascript">\n    (function() {\n        WBtopGlobal && WBtopGlobal.init({\n            \'islogin\':0,\n            "backurl":"//s.weibo.com"\n        });\n    })();\n</script>\n<script type="text/javascript" charset="utf-8" async="" src="//js.t.sinajs.cn/open/analytics/js/suda.js?version=2018080418263900"></script>\n<!-- SUDA_CODE_START -->\n<noscript><img width="0" height="0" src="//beacon.sina.com.cn/a.gif?noScript" border="0" alt="" /></noscript>\n<!-- SUDA_CODE_END -->\n</body>\n<!-- video -->\n<!-- <script src="//js.t.sinajs.cn/t6/page/js/pl/third/search/index.js?version=2018073117" type="text/javascript"></script> -->\n\n</html>'

使用etree.HTML()可以解析字符串格式的HTML文档对象,将传进去的字符串转变成_Element对象

selector = etree.HTML(html)

print('type:'+str(type(selector)))

 

展示热搜榜内容

#文字部分
titles = selector.xpath('//a/text()')
#属性部分,包括链接
ti = selector.xpath('//ahref/text()')
for i in ti:
    print(i)
print('type:'+str(type(titles)))
for i in titles:
    print(i)

结果如下【奇怪的知识又增加了  -_- 】

type:<class 'list'>
热搜榜
要闻榜
好友搜
我国2030年前后实施木星系环绕探测
湖北取消除武汉外其他地区落户限制
周也 冷脸美女
90后女生辞职蹬三轮卖奶茶
刘浩存的眼睛像小鹿
李雪琴辣目洋子吐槽桃花坞
北京一家三口爬野长城被困
看热带往事不敢大声呼吸
中国女排 荷兰女排
Wink离谱
朱婷回来了
佛山机场暂停运营
易烊千玺年度最受欢迎演员
黑龙江一河边发现AWM狙击枪
朱一龙倪妮年度表现力演员
全校24小时筹够患病同学90天用血量
章子怡深V薄纱礼服
奶奶受助后第二年给消防员送粽子
张翰拒绝参加桃花坞集体活动
星辰大海
金靖男朋友
利路修 四六级预言家
肖战直播
妈妈连小风扇都糊弄
虞书欣发文告别初礼
快乐大本营
刘雨昕敬酒内卷
女子被骗31万后又被同一人骗4万
被讨厌的男同事身材羞辱
严浩翔贺峻霖怎么什么都会跳
THE9新歌首秀
粽子界天花板
云南盈江5.0级地震
女学员备考科目二无实物练车
麦田音乐节
端午奇妙游
官方通报7人河边喝酒4人溺亡
云南德宏州地震提前24秒预警
介意公共场合坐异性旁边吗
女子为诈骗报研修班骗同门80部手机
章子怡年度影响力演员
肖战蓝色复古衬衫
丁霞可爱
Neny带不动
航天员景海鹏谈三次飞天
发表多配偶言论教师被暂停教学
疫苗接种社死现场
eStar让二追四
太白山出现落石大量游客滞留
端午是我国别名最多的传统节日
威尔士战平瑞士
突然听懂一首歌是什么体验
关于微博
微博帮助
意见反馈
开放平台
微博招聘
新浪网导航
社区管理中心
微博社区公约
京网文[2011]0398-130号
京ICP备12002058号
Ú

 

 

 

 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值