国产xxxx99真实实拍_久久不雅视频_高清韩国a级特黄毛片_嗯老师别我我受不了了小说

資訊專欄INFORMATION COLUMN

python爬蟲實踐: 豆瓣小組命令行客戶端

golden_hamster / 1233人閱讀

摘要:主要特性前一陣重新組織了一下代碼加了命令行信息用起來更方便了一些初步實現(xiàn)了豆瓣小組及用戶相關(guān)的爬蟲和請求基于和沒有用高階的諸如之類的爬蟲工具所有的命令行輸出都是標準的格式可以使用操作安裝僅支持使用兩種命令模式客戶端接口調(diào)用和豆瓣模塊接口

主要特性

前一陣重新組織了一下代碼, 加了命令行help信息, 用起來更方便了一些

初步實現(xiàn)了豆瓣小組及用戶相關(guān)的API爬蟲和請求

基于requests和lxml, 沒有用高階的諸如scrapy之類的爬蟲工具

所有的命令行輸出都是標準的json格式, 可以使用jq操作

安裝

僅支持python3

pip3 install --upgrade dbapi
使用

兩種命令模式: 客戶端接口調(diào)用和豆瓣模塊接口調(diào)用

# 調(diào)用客戶端自身API, 比如 dbapi use 
dbapi  [options...]

# 調(diào)用豆瓣模塊API, 比如 dbapi group list_user_topics
dbapi   [options...]

查看幫助信息: 可以列出所有的命令及參數(shù)

dbapi --help

用戶登錄: 有兩種形式, 一種是直接用用戶名和密碼登錄, 另一種是直接使用cookie, 因為沒有做驗證碼破解, 所以在頻繁登錄遇到驗證碼之后可以通過Chrome控制臺拿到cookie之后直接丟給客戶端登錄

# 用戶名和密碼登錄, 注意密碼是在命令行里的, 有可能會在你的歷史記錄里面留下密碼
# 雖然這是用戶模塊的命令, 但是因為是全局依賴, 所以就放到客戶端里面了
dbapi login  

# 使用cookie登錄, 注意cookie里面關(guān)鍵的session id被設(shè)置了http only, 需要到network tab下面獲取
dbapi use 

刷新會話信息: 檢查本地保存的會話信息是否已經(jīng)過期, 會話信息會默認保存到$HOME/.__cache__dbapi.json

dbapi flush

命令列表: 目前有用戶(people)模塊和小組(group)模塊的命令, 具體如下:

# -------- 小組部分 --------#
# 創(chuàng)建評論
dbapi group add_comment   
# 創(chuàng)建小組
dbapi group add_group 
# 創(chuàng)建討論
dbapi group add_topic   <content>
# 獲取討論信息
dbapi group get_topic <topic_id>
# 申請加入小組
dbapi group join_group <group_alias> <message>
# 退出小組
dbapi group leave_group <group_alias>
# 話題點贊
dbapi group like_topic <topic_id>
# 獲取評論過的話題列表
dbapi group list_commented_topics <start>
# 獲取評論列表
dbapi group list_comments <topic_id> <start>
# 獲取加入的小組列表
dbapi group list_joined_groups <user_alias>
# 已加入的所有小組的話題列表
dbapi group list_joined_topics <start>
# 獲取點贊的話題列表
dbapi group list_liked_topics <user_alias> <start>
# 獲取推薦的話題列表
dbapi group list_reced_topics <user_alias> <start>
# 獲取小組話題列表
dbapi group list_topics <group_alias> <_type> <start>
# 列出用戶在話題下的所有回復(fù)
dbapi group list_user_comments <topic_id> <user_alias>
# 發(fā)表的話題
dbapi group list_user_topics <start>
# 推薦話題
dbapi group rec_topic <topic_id>
# 刪除評論
dbapi group remove_comment <topic_id> <comment_id> <reason> <other>
# 刪除話題下所有自己的評論
dbapi group remove_commented_topic <topic_id>
# 刪除小組
dbapi group remove_group <group_id>
# 刪除話題
dbapi group remove_topic <topic_id>
# 搜索小組
dbapi group search_groups <keyword> <start>
# 搜索話題
dbapi group search_topics <keyword> <sort> <start>
# 喜歡話題
dbapi group undo_like_topic <topic_id>
# 取消推薦話題
dbapi group undo_rec_topic <rec_id>
# 更新話題
dbapi group update_topic <topic_id> <title> <content>


# -------- 用戶部分 --------#
# 添加相冊
dbapi people add_album <kwargs>
# 添加相冊評論
dbapi people add_album_comment <kwargs>
# 添加照片
dbapi people add_photo <kwargs>
# 添加照片評論
dbapi people add_photo_comment <photo_id> <content>
# 添加說說
dbapi people add_status <kwargs>
# 獲取相冊
dbapi people get_album <album_id>
# 獲取用戶信息
dbapi people get_people <user_alias>
# 獲取照片
dbapi people get_photo <photo_id>
# 喜歡照片
dbapi people like_photo <photo_id>
# 喜歡說說
dbapi people like_status <status_id>
# 獲取相冊列表
dbapi people list_albums <user_alias>
# 獲取關(guān)注用戶列表
dbapi people list_contacts <user_alias> <start>
# 獲取照片評論列表
dbapi people list_photo_comments <photo_id> <start>
# 獲取照片喜歡列表
dbapi people list_photo_likes <photo_id> <start>
# 獲取照片推薦列表
dbapi people list_photo_recs <photo_id> <start>
# 獲取照片列表
dbapi people list_photos <album_id>
# 獲取粉絲列表
dbapi people list_rev_contacts <user_alias> <start>
# 獲取說說評論列表
dbapi people list_status_comments <user_alias> <start>
# 獲取說說列表
dbapi people list_statuses <user_alias> <start>
# 推薦照片
dbapi people rec_photo <photo_id>
# 刪除相冊
dbapi people remove_album <album_id>
# 刪除相冊評論
dbapi people remove_album_comment <kwargs>
# 刪除照片
dbapi people remove_photo <photo_id>
# 刪除照片評論
dbapi people remove_photo_comment <comment_id>
# 刪除說說
dbapi people remove_status <status_id>
# 取消喜歡照片
dbapi people undo_like_photo <photo_id>
# 取消喜歡說說
dbapi people undo_like_status <status_id>
# 取消推薦照片
dbapi people undo_rec_photo <photo_id>
# 更新相冊
dbapi people update_album <kwargs></pre>
</p>

<b>源代碼</b>
<p>GitHub: https://github.com/acrazing/d...</p>           
               
                                           
                       
                 </div>
            
                     <div   id="l5hbfhv"   class="mt-64 tags-seach" >
                 <div   id="7lh55th"   class="tags-info">
                                                                                                                    
                         <a style="width:120px;" title="云服務(wù)器" href="http://m.specialneedsforspecialkids.com/site/active/kuaijiesale.html?ytag=seo">云服務(wù)器</a>
                                             
                         <a style="width:120px;" title="GPU云服務(wù)器" href="http://m.specialneedsforspecialkids.com/site/product/gpu.html">GPU云服務(wù)器</a>
                                                                                                                                                 
                                      
                     
                    
                                                                                               <a style="width:120px;" title="豆瓣怎么創(chuàng)建小組" href="http://m.specialneedsforspecialkids.com/yun/tag/doubanzenmechuangjianxiaozu/">豆瓣怎么創(chuàng)建小組</a>
                                                                                                           <a style="width:120px;" title="python行命令" href="http://m.specialneedsforspecialkids.com/yun/tag/pythonxingmingling/">python行命令</a>
                                                                                                           <a style="width:120px;" title="python的命令行" href="http://m.specialneedsforspecialkids.com/yun/tag/pythondeminglingxing/">python的命令行</a>
                                                                                                           <a style="width:120px;" title="python寫命令行" href="http://m.specialneedsforspecialkids.com/yun/tag/pythonxieminglingxing/">python寫命令行</a>
                                                         
                 </div>
               
              </div>
             
               <div   id="h5nrzzx"   class="entry-copyright mb-30">
                   <p class="mb-15"> 文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。</p>
                 
                   <p>轉(zhuǎn)載請注明本文地址:http://m.specialneedsforspecialkids.com/yun/42176.html</p>
               </div>
                      
               <ul class="pre-next-page">
                 
                                  <li id="dzhz55x"    class="ellipsis"><a class="hpf" href="http://m.specialneedsforspecialkids.com/yun/42175.html">上一篇:python_bomb----輸入輸出管理</a></li>  
                                                
                                       <li id="ptnb7fh"    class="ellipsis"><a class="hpf" href="http://m.specialneedsforspecialkids.com/yun/42177.html">下一篇:8個Python高效數(shù)據(jù)分析的技巧</a></li>
                                  </ul>
              </div>
              <div   id="ljzbvxl"   class="about_topicone-mid">
                <h3 class="top-com-title mb-0"><span data-id="0">相關(guān)文章</span></h3>
                <ul class="com_white-left-mid atricle-list-box">
                             
                                                                                                    <li>
                                                <div   id="xdhlttt"   class="atricle-list-right">
                          <h2 class="ellipsis2"><a class="hpf" href="http://m.specialneedsforspecialkids.com/yun/38055.html"><b><em>Python</em><em>爬蟲</em>實戰(zhàn)(4):<em>豆瓣</em><em>小組</em>話題數(shù)據(jù)采集—動態(tài)網(wǎng)頁</b></a></h2>
                                                     <p class="ellipsis2 good">摘要:,引言注釋上一篇爬蟲實戰(zhàn)安居客房產(chǎn)經(jīng)紀人信息采集,訪問的網(wǎng)頁是靜態(tài)網(wǎng)頁,有朋友模仿那個實戰(zhàn)來采集動態(tài)加載豆瓣小組的網(wǎng)頁,結(jié)果不成功。

showImg(https://segmentfault.com/img/bVzdNZ);
1, 引言
注釋:上一篇《Python爬蟲實戰(zhàn)(3):安居客房產(chǎn)經(jīng)紀人信息采集》,訪問的網(wǎng)頁是靜態(tài)網(wǎng)頁,有朋友模仿那個實戰(zhàn)來采集動態(tài)加載豆瓣小組的網(wǎng)頁,結(jié)果不成功...</p>
                                                   
                          <div   id="djdv5nb"   class="com_white-left-info">
                                <div   id="ptzn5ft"   class="com_white-left-infol">
                                    <a href="http://m.specialneedsforspecialkids.com/yun/u-1061.html"><img src="http://m.specialneedsforspecialkids.com/yun/data/avatar/000/00/10/small_000001061.jpg" alt=""><span id="lbhn55v"    class="layui-hide64">blastz</span></a>
                                    <time datetime="">2019-07-25 10:36</time>
                                    <span><i class="fa fa-commenting"></i>評論0</span> 
                                    <span><i class="fa fa-star"></i>收藏0</span> 
                                </div>
                          </div>
                      </div>
                    </li> 
                                                                                       <li>
                                                <div   id="zjbtvrt"   class="atricle-list-right">
                          <h2 class="ellipsis2"><a class="hpf" href="http://m.specialneedsforspecialkids.com/yun/43342.html"><b>23個<em>Python</em><em>爬蟲</em>開源項目代碼,包含微信、淘寶、<em>豆瓣</em>、知乎、微博等</b></a></h2>
                                                     <p class="ellipsis2 good">摘要:今天為大家整理了個爬蟲項目。地址新浪微博爬蟲主要爬取新浪微博用戶的個人信息微博信息粉絲和關(guān)注。代碼獲取新浪微博進行登錄,可通過多賬號登錄來防止新浪的反扒。涵蓋鏈家爬蟲一文的全部代碼,包括鏈家模擬登錄代碼。支持微博知乎豆瓣。

showImg(https://segmentfault.com/img/remote/1460000018452185?w=1000&h=667);
今天為大家整...</p>
                                                   
                          <div   id="vzr5prv"   class="com_white-left-info">
                                <div   id="7jnr5x5"   class="com_white-left-infol">
                                    <a href="http://m.specialneedsforspecialkids.com/yun/u-195.html"><img src="http://m.specialneedsforspecialkids.com/yun/data/avatar/000/00/01/small_000000195.jpg" alt=""><span id="jz5b5zb"    class="layui-hide64">jlanglang</span></a>
                                    <time datetime="">2019-07-31 10:09</time>
                                    <span><i class="fa fa-commenting"></i>評論0</span> 
                                    <span><i class="fa fa-star"></i>收藏0</span> 
                                </div>
                          </div>
                      </div>
                    </li> 
                                                                                       <li>
                                                <div   id="fhbfx5z"   class="atricle-list-right">
                          <h2 class="ellipsis2"><a class="hpf" href="http://m.specialneedsforspecialkids.com/yun/38506.html"><b>如何系統(tǒng)地自學(xué) <em>Python</em>?</b></a></h2>
                                                     <p class="ellipsis2 good">摘要:這里推薦一本書源碼剖析源碼剖析豆瓣這本書把源碼中最核心的部分,給出了詳細的闡釋,不過閱讀此書需要對語言內(nèi)存模型和指針有著很好的理解。

  是否非常想學(xué)好 Python,一方面被瑣事糾纏,一直沒能動手,另一方面,擔心學(xué)習(xí)成本太高,心里默默敲著退堂鼓?
  幸運的是,Python 是一門初學(xué)者友好的編程語言,想要完全掌握它,你不必花上太多的時間和精力。
  Python 的設(shè)計哲學(xué)之一就是...</p>
                                                   
                          <div   id="xbtzttv"   class="com_white-left-info">
                                <div   id="b7vjpp5"   class="com_white-left-infol">
                                    <a href="http://m.specialneedsforspecialkids.com/yun/u-466.html"><img src="http://m.specialneedsforspecialkids.com/yun/data/avatar/000/00/04/small_000000466.jpg" alt=""><span id="l7xnfth"    class="layui-hide64">zgbgx</span></a>
                                    <time datetime="">2019-07-25 11:36</time>
                                    <span><i class="fa fa-commenting"></i>評論0</span> 
                                    <span><i class="fa fa-star"></i>收藏0</span> 
                                </div>
                          </div>
                      </div>
                    </li> 
                                                                                       <li>
                                                <div   id="zrnt7dp"   class="atricle-list-right">
                          <h2 class="ellipsis2"><a class="hpf" href="http://m.specialneedsforspecialkids.com/yun/106084.html"><b>爬<em>豆瓣</em><em>小組</em>中的租房信息(mongo+node+vue)</b></a></h2>
                                                     <p class="ellipsis2 good">摘要:數(shù)目限制應(yīng)該省略的條數(shù)數(shù)目限制排序方式函數(shù)的參數(shù)個數(shù),必須是個,或者個。

基本思路
1.通過node中的 superagent 模擬http請求,去讀取豆瓣小組的信息,對讀取到的信息通過cheerio插件進行解析格式化以便于獲取body中的信息存儲到mongodb中
2.因為豆瓣會ban掉一寫爬蟲ip,所以爬取過程中會使用ip池挑選沒有使用過的ip進行代理去爬取,并且會避免并發(fā) 使用m...</p>
                                                   
                          <div   id="brjdh5p"   class="com_white-left-info">
                                <div   id="ndlp55v"   class="com_white-left-infol">
                                    <a href="http://m.specialneedsforspecialkids.com/yun/u-162.html"><img src="http://m.specialneedsforspecialkids.com/yun/data/avatar/000/00/01/small_000000162.jpg" alt=""><span id="7z55bn7"    class="layui-hide64">vvpvvp</span></a>
                                    <time datetime="">2019-08-26 10:23</time>
                                    <span><i class="fa fa-commenting"></i>評論0</span> 
                                    <span><i class="fa fa-star"></i>收藏0</span> 
                                </div>
                          </div>
                      </div>
                    </li> 
                                                                                       <li>
                                                <div   id="xbfj5ht"   class="atricle-list-right">
                          <h2 class="ellipsis2"><a class="hpf" href="http://m.specialneedsforspecialkids.com/yun/38102.html"><b><em>Python</em>即時網(wǎng)絡(luò)<em>爬蟲</em>項目: 內(nèi)容提取器的定義(<em>Python</em>2.7版本)</b></a></h2>
                                                     <p class="ellipsis2 good">摘要:然而,和是有區(qū)別的,即時網(wǎng)絡(luò)爬蟲項目內(nèi)容提取器的定義一文的源碼無法在下使用,本文將發(fā)布一個的內(nèi)容提取器。

1. 項目背景
showImg(https://segmentfault.com/img/bVz5hX);
在Python即時網(wǎng)絡(luò)爬蟲項目啟動說明中我們討論一個數(shù)字:程序員浪費在調(diào)測內(nèi)容提取規(guī)則上的時間太多了(見上圖),從而我們發(fā)起了這個項目,把程序員從繁瑣的調(diào)測規(guī)則中解放出來,投...</p>
                                                   
                          <div   id="j7vlppt"   class="com_white-left-info">
                                <div   id="bfl55zz"   class="com_white-left-infol">
                                    <a href="http://m.specialneedsforspecialkids.com/yun/u-1240.html"><img src="http://m.specialneedsforspecialkids.com/yun/data/avatar/000/00/12/small_000001240.jpg" alt=""><span id="5lndvxj"    class="layui-hide64">xuxueli</span></a>
                                    <time datetime="">2019-07-25 10:40</time>
                                    <span><i class="fa fa-commenting"></i>評論0</span> 
                                    <span><i class="fa fa-star"></i>收藏0</span> 
                                </div>
                          </div>
                      </div>
                    </li> 
                                                                           
                </ul>
              </div>
              
               <div   id="txbv5l7"   class="topicone-box-wangeditor">
                  
                  <h3 class="top-com-title mb-64"><span>發(fā)表評論</span></h3>
                   <div   id="vx5n5h5"   class="xcp-publish-main flex_box_zd">
                                      
                      <div   id="hjbvbnp"   class="unlogin-pinglun-box">
                        <a href="javascript:login()" class="grad">登陸后可評論</a>
                      </div>                   </div>
               </div>
              <div   id="xx5tfhh"   class="site-box-content">
                <div   id="rfjbvl5"   class="site-content-title">
                  <h3 class="top-com-title mb-64"><span>0條評論</span></h3>   
                </div> 
                      <div   id="5hlfxnp"   class="pages"></ul></div>
              </div>
           </div>
           <div   id="dpjd5tf"   class="layui-col-md4 layui-col-lg3 com_white-right site-wrap-right">
              <div   id="llpvnb5"   class=""> 
                <div   id="t5bhzz5"   class="com_layuiright-box user-msgbox">
                    <a href="http://m.specialneedsforspecialkids.com/yun/u-111.html"><img src="http://m.specialneedsforspecialkids.com/yun/data/avatar/000/00/01/small_000000111.jpg" alt=""></a>
                    <h3><a href="http://m.specialneedsforspecialkids.com/yun/u-111.html" rel="nofollow">golden_hamster</a></h3>
                    <h6>男<span>|</span>高級講師</h6>
                    <div   id="b7fjf55"   class="flex_box_zd user-msgbox-atten">
                     
                                                                      <a href="javascript:attentto_user(111)" id="attenttouser_111" class="grad follow-btn notfollow attention">我要關(guān)注</a>
      
                                                                                        <a href="javascript:login()" title="發(fā)私信" >我要私信</a>
                     
                                            
                    </div>
                    <div   id="l5vvddd"   class="user-msgbox-list flex_box_zd">
                          <h3 class="hpf">TA的文章</h3>
                          <a href="http://m.specialneedsforspecialkids.com/yun/ut-111.html" class="box_hxjz">閱讀更多</a>
                    </div>
                      <ul class="user-msgbox-ul">
                                                  <li><h3 class="ellipsis"><a href="http://m.specialneedsforspecialkids.com/yun/130604.html">tensorflow</a></h3>
                            <p>閱讀 1865<span>·</span>2023-04-25 14:28</p></li>
                                                       <li><h3 class="ellipsis"><a href="http://m.specialneedsforspecialkids.com/yun/123903.html">模擬信號|隔離器放大器|隔離變送器|4-20mA|0-5V|0-10V隔離|常見問題解答</a></h3>
                            <p>閱讀 1901<span>·</span>2021-11-19 09:40</p></li>
                                                       <li><h3 class="ellipsis"><a href="http://m.specialneedsforspecialkids.com/yun/123619.html">數(shù)據(jù)結(jié)構(gòu):鏈表-C語言實現(xiàn)</a></h3>
                            <p>閱讀 2803<span>·</span>2021-11-17 09:33</p></li>
                                                       <li><h3 class="ellipsis"><a href="http://m.specialneedsforspecialkids.com/yun/122801.html">OBHost:萬圣節(jié)優(yōu)惠,新加坡vps/美國vps等,大硬盤VPS/游戲服務(wù)器/站群VPS七折,最低</a></h3>
                            <p>閱讀 1391<span>·</span>2021-11-02 14:48</p></li>
                                                       <li><h3 class="ellipsis"><a href="http://m.specialneedsforspecialkids.com/yun/113853.html">Vue.js 移動端適配之 vw 解決方案</a></h3>
                            <p>閱讀 1716<span>·</span>2019-08-29 16:36</p></li>
                                                       <li><h3 class="ellipsis"><a href="http://m.specialneedsforspecialkids.com/yun/113563.html">Bootstrap 4重大更新,亮點解讀</a></h3>
                            <p>閱讀 3339<span>·</span>2019-08-29 16:09</p></li>
                                                       <li><h3 class="ellipsis"><a href="http://m.specialneedsforspecialkids.com/yun/113042.html">關(guān)于響應(yīng)式設(shè)計的一些關(guān)鍵點</a></h3>
                            <p>閱讀 2923<span>·</span>2019-08-29 14:17</p></li>
                                                       <li><h3 class="ellipsis"><a href="http://m.specialneedsforspecialkids.com/yun/112936.html">Web前端面試題目匯總</a></h3>
                            <p>閱讀 2388<span>·</span>2019-08-29 14:07</p></li>
                                                
                      </ul>
                </div>

                   <!-- 文章詳情右側(cè)廣告-->
              
  <div   id="zlznt5n"   class="com_layuiright-box">
                  <h6 class="top-com-title"><span>最新活動</span></h6> 
           
         <div   id="7nhlfh5"   class="com_adbox">
                    <div   id="xlh5znp"   class="layui-carousel" id="right-item">
                      <div carousel-item>
                                                                                                                       <div>
                          <a href="http://m.specialneedsforspecialkids.com/site/active/kuaijiesale.html?ytag=seo"  rel="nofollow">
                            <img src="http://m.specialneedsforspecialkids.com/yun/data/attach/240625/2rTjEHmi.png" alt="云服務(wù)器">                                 
                          </a>
                        </div>
                                                <div>
                          <a href="http://m.specialneedsforspecialkids.com/site/product/gpu.html"  rel="nofollow">
                            <img src="http://m.specialneedsforspecialkids.com/yun/data/attach/240807/7NjZjdrd.png" alt="GPU云服務(wù)器">                                 
                          </a>
                        </div>
                                                                   
                    
                        
                      </div>
                    </div>
                      
                    </div>                    <!-- banner結(jié)束 -->
              
<div   id="llb7rrd"   class="adhtml">

</div>
                <script>
                $(function(){
                    $.ajax({
                        type: "GET",
                                url:"http://m.specialneedsforspecialkids.com/yun/ad/getad/1.html",
                                cache: false,
                                success: function(text){
                                  $(".adhtml").html(text);
                                }
                        });
                    })
                </script>                </div>              </div>
           </div>
        </div>
      </div> 
    </section>
    <!-- wap拉出按鈕 -->
     <div   id="777jnnp"   class="site-tree-mobile layui-hide">
      <i class="layui-icon layui-icon-spread-left"></i>
    </div>
    <!-- wap遮罩層 -->
    <div   id="lnptx5z"   class="site-mobile-shade"></div>
    
       <!--付費閱讀 -->
       <div   class="7brfnrp"   id="payread">
         <div   id="dh5l5tt"   class="layui-form-item">閱讀需要支付1元查看</div>  
         <div   id="rr55ldn"   class="layui-form-item"><button class="btn-right">支付并查看</button></div>     
       </div>
      <script>
      var prei=0;

       
       $(".site-seo-depict pre").each(function(){
          var html=$(this).html().replace("<code>","").replace("</code>","").replace('<code class="javascript hljs" codemark="1">','');
          $(this).attr('data-clipboard-text',html).attr("id","pre"+prei);
          $(this).html("").append("<code>"+html+"</code>");
         prei++;
       })
           $(".site-seo-depict img").each(function(){
             
            if($(this).attr("src").indexOf('data:image/svg+xml')!= -1){
                $(this).remove();
            }
       })
     $("LINK[href*='style-49037e4d27.css']").remove();
       $("LINK[href*='markdown_views-d7a94ec6ab.css']").remove();
layui.use(['jquery', 'layer','code'], function(){
  $("pre").attr("class","layui-code");
      $("pre").attr("lay-title","");
       $("pre").attr("lay-skin","");
  layui.code(); 
       $(".layui-code-h3 a").attr("class","copycode").html("復(fù)制代碼 ").attr("onclick","copycode(this)");
      
});
function copycode(target){
    var id=$(target).parent().parent().attr("id");
  
                  var clipboard = new ClipboardJS("#"+id);

clipboard.on('success', function(e) {


    e.clearSelection();
    alert("復(fù)制成功")
});

clipboard.on('error', function(e) {
    alert("復(fù)制失敗")
});
}
//$(".site-seo-depict").html($(".site-seo-depict").html().slice(0, -5));
</script>
  <link rel="stylesheet" type="text/css" href="http://m.specialneedsforspecialkids.com/yun/static/js/neweditor/code/styles/tomorrow-night-eighties.css">
    <script src="http://m.specialneedsforspecialkids.com/yun/static/js/neweditor/code/highlight.pack.js" type="text/javascript"></script>
    <script src="http://m.specialneedsforspecialkids.com/yun/static/js/clipboard.js"></script>

<script>hljs.initHighlightingOnLoad();</script>

<script>
    function setcode(){
        var _html='';
    	  document.querySelectorAll('pre code').forEach((block) => {
        	  var _tmptext=$.trim($(block).text());
        	  if(_tmptext!=''){
        		  _html=_html+_tmptext;
        		  console.log(_html);
        	  }
    		 
    		  
    		 
      	  });
    	 

    }

</script>

<script>
function payread(){
  layer.open({
      type: 1,
      title:"付費閱讀",
      shadeClose: true,
      content: $('#payread')
    });
}
// 舉報
function jupao_tip(){
  layer.open({
      type: 1,
      title:false,
      shadeClose: true,
      content: $('#jubao')
    });

}
$(".getcommentlist").click(function(){
var _id=$(this).attr("dataid");
var _tid=$(this).attr("datatid");
$("#articlecommentlist"+_id).toggleClass("hide");
var flag=$("#articlecommentlist"+_id).attr("dataflag");
if(flag==1){
flag=0;
}else{
flag=1;
//加載評論
loadarticlecommentlist(_id,_tid);
}
$("#articlecommentlist"+_id).attr("dataflag",flag);

})
$(".add-comment-btn").click(function(){
var _id=$(this).attr("dataid");
$(".formcomment"+_id).toggleClass("hide");
})
$(".btn-sendartcomment").click(function(){
var _aid=$(this).attr("dataid");
var _tid=$(this).attr("datatid");
var _content=$.trim($(".commenttext"+_aid).val());
if(_content==''){
alert("評論內(nèi)容不能為空");
return false;
}
var touid=$("#btnsendcomment"+_aid).attr("touid");
if(touid==null){
touid=0;
}
addarticlecomment(_tid,_aid,_content,touid);
})
 $(".button_agree").click(function(){
 var supportobj = $(this);
         var tid = $(this).attr("id");
         $.ajax({
         type: "GET",
                 url:"http://m.specialneedsforspecialkids.com/yun/index.php?topic/ajaxhassupport/" + tid,
                 cache: false,
                 success: function(hassupport){
                 if (hassupport != '1'){






                         $.ajax({
                         type: "GET",
                                 cache:false,
                                 url: "http://m.specialneedsforspecialkids.com/yun/index.php?topic/ajaxaddsupport/" + tid,
                                 success: function(comments) {

                                 supportobj.find("span").html(comments+"人贊");
                                 }
                         });
                 }else{
                	 alert("您已經(jīng)贊過");
                 }
                 }
         });
 });
 function attenquestion(_tid,_rs){
    	$.ajax({
    //提交數(shù)據(jù)的類型 POST GET
    type:"POST",
    //提交的網(wǎng)址
    url:"http://m.specialneedsforspecialkids.com/yun/favorite/topicadd.html",
    //提交的數(shù)據(jù)
    data:{tid:_tid,rs:_rs},
    //返回數(shù)據(jù)的格式
    datatype: "json",//"xml", "html", "script", "json", "jsonp", "text".
    //在請求之前調(diào)用的函數(shù)
    beforeSend:function(){},
    //成功返回之后調(diào)用的函數(shù)
    success:function(data){
    	var data=eval("("+data+")");
    	console.log(data)
       if(data.code==2000){
    	layer.msg(data.msg,function(){
    	  if(data.rs==1){
    	      //取消收藏
    	      $(".layui-layer-tips").attr("data-tips","收藏文章");
    	      $(".layui-layer-tips").html('<i class="fa fa-heart-o"></i>');
    	  }
    	   if(data.rs==0){
    	      //收藏成功
    	      $(".layui-layer-tips").attr("data-tips","已收藏文章");
    	      $(".layui-layer-tips").html('<i class="fa fa-heart"></i>')
    	  }
    	})
    	 
       }else{
    	layer.msg(data.msg)
       }


    }   ,
    //調(diào)用執(zhí)行后調(diào)用的函數(shù)
    complete: function(XMLHttpRequest, textStatus){
     	postadopt=true;
    },
    //調(diào)用出錯執(zhí)行的函數(shù)
    error: function(){
        //請求出錯處理
    	postadopt=false;
    }
 });
}
</script>
<footer>
        <div   id="f7jzjjx"   class="layui-container">
            <div   id="hjbhxbd"   class="flex_box_zd">
              <div   id="vjzptft"   class="left-footer">
                    <h6><a href="http://m.specialneedsforspecialkids.com/"><img src="http://m.specialneedsforspecialkids.com/yun/static/theme/ukd//images/logo.png" alt="UCloud (優(yōu)刻得科技股份有限公司)"></a></h6>
                    <p>UCloud (優(yōu)刻得科技股份有限公司)是中立、安全的云計算服務(wù)平臺,堅持中立,不涉足客戶業(yè)務(wù)領(lǐng)域。公司自主研發(fā)IaaS、PaaS、大數(shù)據(jù)流通平臺、AI服務(wù)平臺等一系列云計算產(chǎn)品,并深入了解互聯(lián)網(wǎng)、傳統(tǒng)企業(yè)在不同場景下的業(yè)務(wù)需求,提供公有云、混合云、私有云、專有云在內(nèi)的綜合性行業(yè)解決方案。</p>
              </div>
              <div   id="npxrxp5"   class="right-footer layui-hidemd">
                  <ul class="flex_box_zd">
                      <li>
                        <h6>UCloud與云服務(wù)</h6>
                         <p><a href="http://m.specialneedsforspecialkids.com/site/about/intro/">公司介紹</a></p>
                         <p><a  >加入我們</a></p>
                         <p><a href="http://m.specialneedsforspecialkids.com/site/ucan/onlineclass/">UCan線上公開課</a></p>
                         <p><a href="http://m.specialneedsforspecialkids.com/site/solutions.html" >行業(yè)解決方案</a></p>                                                  <p><a href="http://m.specialneedsforspecialkids.com/site/pro-notice/">產(chǎn)品動態(tài)</a></p>
                      </li>
                      <li>
                        <h6>友情鏈接</h6>                                             <p><a >GPU算力平臺</a></p>                                             <p><a >UCloud私有云</a></p>
                                             <p><a >SurferCloud</a></p>                                             <p><a >工廠仿真軟件</a></p>                                             <p><a >Pinex</a></p>                                             <p><a >AI繪畫</a></p>
                                             
                      </li>
                      <li>
                        <h6>社區(qū)欄目</h6>
                         <p><a href="http://m.specialneedsforspecialkids.com/yun/column/index.html">專欄文章</a></p>
                     <p><a href="http://m.specialneedsforspecialkids.com/yun/udata/">專題地圖</a></p>                      </li>
                      <li>
                        <h6>常見問題</h6>
                         <p><a href="http://m.specialneedsforspecialkids.com/site/ucsafe/notice.html" >安全中心</a></p>
                         <p><a href="http://m.specialneedsforspecialkids.com/site/about/news/recent/" >新聞動態(tài)</a></p>
                         <p><a href="http://m.specialneedsforspecialkids.com/site/about/news/report/">媒體動態(tài)</a></p>                                                  <p><a href="http://m.specialneedsforspecialkids.com/site/cases.html">客戶案例</a></p>                                                
                         <p><a href="http://m.specialneedsforspecialkids.com/site/notice/">公告</a></p>
                      </li>
                      <li>
                          <span><img src="https://static.ucloud.cn/7a4b6983f4b94bcb97380adc5d073865.png" alt="優(yōu)刻得"></span>
                          <p>掃掃了解更多</p></div>
            </div>
            <div   id="7lrvddh"   class="copyright">Copyright ? 2012-2023 UCloud 優(yōu)刻得科技股份有限公司<i>|</i><a rel="nofollow" >滬公網(wǎng)安備 31011002000058號</a><i>|</i><a rel="nofollow" ></a> 滬ICP備12020087號-3</a><i>|</i> <script type="text/javascript" src="https://gyfk12.kuaishang.cn/bs/ks.j?cI=197688&fI=125915" charset="utf-8"></script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?290c2650b305fc9fff0dbdcafe48b59d";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-DZSMXQ3P9N"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-DZSMXQ3P9N');
</script>
<script>
(function(){
var el = document.createElement("script");
el.src = "https://lf1-cdn-tos.bytegoofy.com/goofy/ttzz/push.js?99f50ea166557aed914eb4a66a7a70a4709cbb98a54ecb576877d99556fb4bfc3d72cd14f8a76432df3935ab77ec54f830517b3cb210f7fd334f50ccb772134a";
el.id = "ttzz";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(el, s);
})(window)
</script></div> 
        </div>
    </footer>

<footer>
<div class="friendship-link">
<p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p>
<a href="http://m.specialneedsforspecialkids.com/" title="国产xxxx99真实实拍">国产xxxx99真实实拍</a>

<div class="friend-links">

<a href="http://m.cp97744.com/">国产一区电影</a>
</div>
</div>

</footer>

<script>
(function(){
    var bp = document.createElement('script');
    var curProtocol = window.location.protocol.split(':')[0];
    if (curProtocol === 'https') {
        bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
    }
    else {
        bp.src = 'http://push.zhanzhang.baidu.com/push.js';
    }
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(bp, s);
})();
</script>
</body><div id="3hdt5" class="pl_css_ganrao" style="display: none;"><dl id="3hdt5"><pre id="3hdt5"><track id="3hdt5"><tt id="3hdt5"></tt></track></pre></dl><em id="3hdt5"><big id="3hdt5"></big></em><u id="3hdt5"></u><form id="3hdt5"></form><track id="3hdt5"></track><ruby id="3hdt5"><font id="3hdt5"></font></ruby><i id="3hdt5"></i><meter id="3hdt5"><pre id="3hdt5"></pre></meter><pre id="3hdt5"></pre><dl id="3hdt5"></dl><th id="3hdt5"><b id="3hdt5"></b></th><ol id="3hdt5"></ol><tt id="3hdt5"><menuitem id="3hdt5"><form id="3hdt5"><legend id="3hdt5"></legend></form></menuitem></tt><nobr id="3hdt5"><b id="3hdt5"><progress id="3hdt5"><sup id="3hdt5"></sup></progress></b></nobr><address id="3hdt5"><strike id="3hdt5"></strike></address><pre id="3hdt5"></pre><small id="3hdt5"><ins id="3hdt5"><address id="3hdt5"><div id="3hdt5"></div></address></ins></small><optgroup id="3hdt5"><output id="3hdt5"><sub id="3hdt5"><big id="3hdt5"></big></sub></output></optgroup><menuitem id="3hdt5"><dl id="3hdt5"><i id="3hdt5"><listing id="3hdt5"></listing></i></dl></menuitem><label id="3hdt5"><th id="3hdt5"><b id="3hdt5"><ins id="3hdt5"></ins></b></th></label><label id="3hdt5"><strong id="3hdt5"><rp id="3hdt5"><b id="3hdt5"></b></rp></strong></label><form id="3hdt5"><ins id="3hdt5"></ins></form><big id="3hdt5"><ol id="3hdt5"><i id="3hdt5"><track id="3hdt5"></track></i></ol></big><strong id="3hdt5"></strong><listing id="3hdt5"><dfn id="3hdt5"></dfn></listing><i id="3hdt5"><listing id="3hdt5"></listing></i><label id="3hdt5"><rp id="3hdt5"><font id="3hdt5"><meter id="3hdt5"></meter></font></rp></label><form id="3hdt5"><legend id="3hdt5"><label id="3hdt5"><u id="3hdt5"></u></label></legend></form><style id="3hdt5"></style><sub id="3hdt5"><p id="3hdt5"><var id="3hdt5"><optgroup id="3hdt5"></optgroup></var></p></sub><div id="3hdt5"><ol id="3hdt5"></ol></div><dfn id="3hdt5"></dfn><sub id="3hdt5"><strike id="3hdt5"><ol id="3hdt5"><optgroup id="3hdt5"></optgroup></ol></strike></sub><menuitem id="3hdt5"><dl id="3hdt5"><i id="3hdt5"><listing id="3hdt5"></listing></i></dl></menuitem><label id="3hdt5"><u id="3hdt5"></u></label><u id="3hdt5"></u><u id="3hdt5"><ruby id="3hdt5"></ruby></u><optgroup id="3hdt5"><video id="3hdt5"><sub id="3hdt5"><div id="3hdt5"></div></sub></video></optgroup><progress id="3hdt5"></progress><ruby id="3hdt5"><thead id="3hdt5"><legend id="3hdt5"><acronym id="3hdt5"></acronym></legend></thead></ruby><big id="3hdt5"><ol id="3hdt5"><optgroup id="3hdt5"><listing id="3hdt5"></listing></optgroup></ol></big><dl id="3hdt5"><pre id="3hdt5"><track id="3hdt5"><tt id="3hdt5"></tt></track></pre></dl><u id="3hdt5"><rp id="3hdt5"></rp></u><dfn id="3hdt5"></dfn><b id="3hdt5"><ins id="3hdt5"><em id="3hdt5"><menuitem id="3hdt5"></menuitem></em></ins></b><font id="3hdt5"><video id="3hdt5"></video></font><form id="3hdt5"></form><pre id="3hdt5"><label id="3hdt5"></label></pre><ruby id="3hdt5"></ruby><progress id="3hdt5"></progress><menuitem id="3hdt5"></menuitem><form id="3hdt5"><output id="3hdt5"></output></form><address id="3hdt5"></address><pre id="3hdt5"><track id="3hdt5"></track></pre><strike id="3hdt5"></strike><optgroup id="3hdt5"><video id="3hdt5"><em id="3hdt5"><big id="3hdt5"></big></em></video></optgroup><label id="3hdt5"><strong id="3hdt5"></strong></label><strong id="3hdt5"></strong><menuitem id="3hdt5"></menuitem><video id="3hdt5"></video><acronym id="3hdt5"></acronym><thead id="3hdt5"><thead id="3hdt5"><label id="3hdt5"><strong id="3hdt5"></strong></label></thead></thead><track id="3hdt5"></track><ruby id="3hdt5"><thead id="3hdt5"></thead></ruby><legend id="3hdt5"></legend><pre id="3hdt5"><p id="3hdt5"></p></pre><sub id="3hdt5"></sub><pre id="3hdt5"><p id="3hdt5"></p></pre><font id="3hdt5"></font><acronym id="3hdt5"></acronym><span id="3hdt5"><legend id="3hdt5"></legend></span><progress id="3hdt5"></progress><rp id="3hdt5"></rp><ins id="3hdt5"><address id="3hdt5"></address></ins><video id="3hdt5"><sub id="3hdt5"><div id="3hdt5"><strong id="3hdt5"></strong></div></sub></video><thead id="3hdt5"><legend id="3hdt5"><sup id="3hdt5"><label id="3hdt5"></label></sup></legend></thead><thead id="3hdt5"><label id="3hdt5"><u id="3hdt5"><ruby id="3hdt5"></ruby></u></label></thead><p id="3hdt5"><strong id="3hdt5"><small id="3hdt5"><ins id="3hdt5"></ins></small></strong></p><label id="3hdt5"><strong id="3hdt5"></strong></label><acronym id="3hdt5"></acronym><i id="3hdt5"></i><strong id="3hdt5"><rp id="3hdt5"></rp></strong><pre id="3hdt5"></pre><pre id="3hdt5"><video id="3hdt5"><em id="3hdt5"><big id="3hdt5"></big></em></video></pre><ins id="3hdt5"></ins><dl id="3hdt5"><i id="3hdt5"><listing id="3hdt5"><dfn id="3hdt5"></dfn></listing></i></dl><div id="3hdt5"><ol id="3hdt5"></ol></div><ruby id="3hdt5"><thead id="3hdt5"><thead id="3hdt5"><label id="3hdt5"></label></thead></thead></ruby><listing id="3hdt5"><u id="3hdt5"><ruby id="3hdt5"><thead id="3hdt5"></thead></ruby></u></listing><legend id="3hdt5"><listing id="3hdt5"></listing></legend><nobr id="3hdt5"><small id="3hdt5"><ins id="3hdt5"><address id="3hdt5"></address></ins></small></nobr><strong id="3hdt5"><ruby id="3hdt5"><form id="3hdt5"><legend id="3hdt5"></legend></form></ruby></strong><form id="3hdt5"></form><label id="3hdt5"><rp id="3hdt5"></rp></label><font id="3hdt5"></font><em id="3hdt5"></em><font id="3hdt5"><progress id="3hdt5"></progress></font><address id="3hdt5"><strike id="3hdt5"><strong id="3hdt5"><optgroup id="3hdt5"></optgroup></strong></strike></address><span id="3hdt5"><legend id="3hdt5"></legend></span><font id="3hdt5"><progress id="3hdt5"></progress></font><div id="3hdt5"><strong id="3hdt5"></strong></div><legend id="3hdt5"><label id="3hdt5"></label></legend><video id="3hdt5"><sub id="3hdt5"><div id="3hdt5"><ol id="3hdt5"></ol></div></sub></video><sup id="3hdt5"><label id="3hdt5"><th id="3hdt5"><small id="3hdt5"></small></th></label></sup><label id="3hdt5"></label><dl id="3hdt5"><legend id="3hdt5"><listing id="3hdt5"><u id="3hdt5"></u></listing></legend></dl><meter id="3hdt5"></meter><strong id="3hdt5"></strong><progress id="3hdt5"><sup id="3hdt5"><strong id="3hdt5"><rp id="3hdt5"></rp></strong></sup></progress><font id="3hdt5"><progress id="3hdt5"></progress></font><var id="3hdt5"></var><rp id="3hdt5"><font id="3hdt5"></font></rp><span id="3hdt5"><legend id="3hdt5"></legend></span><label id="3hdt5"></label><div id="3hdt5"></div><sup id="3hdt5"></sup><legend id="3hdt5"><sup id="3hdt5"></sup></legend><style id="3hdt5"><th id="3hdt5"></th></style><output id="3hdt5"><sub id="3hdt5"><div id="3hdt5"><ol id="3hdt5"></ol></div></sub></output><form id="3hdt5"><output id="3hdt5"></output></form><u id="3hdt5"></u><legend id="3hdt5"></legend><form id="3hdt5"></form><rp id="3hdt5"><font id="3hdt5"></font></rp><ol id="3hdt5"><optgroup id="3hdt5"><video id="3hdt5"><sub id="3hdt5"></sub></video></optgroup></ol><div id="3hdt5"><ol id="3hdt5"></ol></div><ruby id="3hdt5"><thead id="3hdt5"><thead id="3hdt5"><sup id="3hdt5"></sup></thead></thead></ruby><ruby id="3hdt5"><form id="3hdt5"><thead id="3hdt5"><label id="3hdt5"></label></thead></form></ruby><big id="3hdt5"><ol id="3hdt5"><pre id="3hdt5"><track id="3hdt5"></track></pre></ol></big><video id="3hdt5"><em id="3hdt5"></em></video><ins id="3hdt5"><pre id="3hdt5"></pre></ins><u id="3hdt5"><ruby id="3hdt5"></ruby></u><i id="3hdt5"><listing id="3hdt5"></listing></i><pre id="3hdt5"><p id="3hdt5"></p></pre><menuitem id="3hdt5"><span id="3hdt5"><i id="3hdt5"><dfn id="3hdt5"></dfn></i></span></menuitem><font id="3hdt5"><progress id="3hdt5"><acronym id="3hdt5"><style id="3hdt5"></style></acronym></progress></font><i id="3hdt5"><listing id="3hdt5"></listing></i><dl id="3hdt5"><i id="3hdt5"><listing id="3hdt5"><u id="3hdt5"></u></listing></i></dl><form id="3hdt5"></form><nobr id="3hdt5"><small id="3hdt5"></small></nobr><menuitem id="3hdt5"><dl id="3hdt5"><i id="3hdt5"><listing id="3hdt5"></listing></i></dl></menuitem><ins id="3hdt5"><address id="3hdt5"></address></ins><div id="3hdt5"><strong id="3hdt5"></strong></div><sup id="3hdt5"></sup><pre id="3hdt5"></pre><style id="3hdt5"><nobr id="3hdt5"></nobr></style><ins id="3hdt5"></ins><track id="3hdt5"></track><big id="3hdt5"><dl id="3hdt5"><i id="3hdt5"><listing id="3hdt5"></listing></i></dl></big><meter id="3hdt5"><pre id="3hdt5"></pre></meter></div>
<script src="http://m.specialneedsforspecialkids.com/yun/static/theme/ukd/js/common.js"></script>
<<script type="text/javascript">
$(".site-seo-depict *,.site-content-answer-body *,.site-body-depict *").css("max-width","100%");
</script>
</html>