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

資訊專欄INFORMATION COLUMN

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

golden_hamster / 1227人閱讀

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

主要特性

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

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

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

所有的命令行輸出都是標(biāo)準(zhǔn)的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, 因?yàn)闆]有做驗(yàn)證碼破解, 所以在頻繁登錄遇到驗(yàn)證碼之后可以通過Chrome控制臺(tái)拿到cookie之后直接丟給客戶端登錄

# 用戶名和密碼登錄, 注意密碼是在命令行里的, 有可能會(huì)在你的歷史記錄里面留下密碼
# 雖然這是用戶模塊的命令, 但是因?yàn)槭侨忠蕾? 所以就放到客戶端里面了
dbapi login  

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

刷新會(huì)話信息: 檢查本地保存的會(huì)話信息是否已經(jīng)過期, 會(huì)話信息會(huì)默認(rèn)保存到$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>
# 話題點(diǎn)贊
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>
# 獲取點(diǎn)贊的話題列表
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="kasy0e2"   class="mt-64 tags-seach" >
                 <div   id="cmsim2e"   class="tags-info">
                                                                                                                    
                         <a style="width:120px;" title="云服務(wù)器" href="http://specialneedsforspecialkids.com/site/active/kuaijiesale.html?ytag=seo">云服務(wù)器</a>
                                             
                         <a style="width:120px;" title="GPU云服務(wù)器" href="http://specialneedsforspecialkids.com/site/product/gpu.html">GPU云服務(wù)器</a>
                                                                                                                                                 
                                      
                     
                    
                                                                                               <a style="width:120px;" title="豆瓣怎么創(chuàng)建小組" href="http://specialneedsforspecialkids.com/yun/tag/doubanzenmechuangjianxiaozu/">豆瓣怎么創(chuàng)建小組</a>
                                                                                                           <a style="width:120px;" title="python行命令" href="http://specialneedsforspecialkids.com/yun/tag/pythonxingmingling/">python行命令</a>
                                                                                                           <a style="width:120px;" title="python的命令行" href="http://specialneedsforspecialkids.com/yun/tag/pythondeminglingxing/">python的命令行</a>
                                                                                                           <a style="width:120px;" title="python寫命令行" href="http://specialneedsforspecialkids.com/yun/tag/pythonxieminglingxing/">python寫命令行</a>
                                                         
                 </div>
               
              </div>
             
               <div   id="iciw0qe"   class="entry-copyright mb-30">
                   <p class="mb-15"> 文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。</p>
                 
                   <p>轉(zhuǎn)載請注明本文地址:http://specialneedsforspecialkids.com/yun/42176.html</p>
               </div>
                      
               <ul class="pre-next-page">
                 
                                  <li id="koua2aq"    class="ellipsis"><a class="hpf" href="http://specialneedsforspecialkids.com/yun/42175.html">上一篇:python_bomb----輸入輸出管理</a></li>  
                                                
                                       <li id="yoqwwoc"    class="ellipsis"><a class="hpf" href="http://specialneedsforspecialkids.com/yun/42177.html">下一篇:8個(gè)Python高效數(shù)據(jù)分析的技巧</a></li>
                                  </ul>
              </div>
              <div   id="iqiogug"   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="w222202"   class="atricle-list-right">
                          <h2 class="ellipsis2"><a class="hpf" href="http://specialneedsforspecialkids.com/yun/38055.html"><b><em>Python</em><em>爬蟲</em>實(shí)戰(zhàn)(4):<em>豆瓣</em><em>小組</em>話題數(shù)據(jù)采集—?jiǎng)討B(tài)網(wǎng)頁</b></a></h2>
                                                     <p class="ellipsis2 good">摘要:,引言注釋上一篇爬蟲實(shí)戰(zhàn)安居客房產(chǎn)經(jīng)紀(jì)人信息采集,訪問的網(wǎng)頁是靜態(tài)網(wǎng)頁,有朋友模仿那個(gè)實(shí)戰(zhàn)來采集動(dòng)態(tài)加載豆瓣小組的網(wǎng)頁,結(jié)果不成功。

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

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

  是否非常想學(xué)好 Python,一方面被瑣事糾纏,一直沒能動(dòng)手,另一方面,擔(dān)心學(xué)習(xí)成本太高,心里默默敲著退堂鼓?
  幸運(yùn)的是,Python 是一門初學(xué)者友好的編程語言,想要完全掌握它,你不必花上太多的時(shí)間和精力。
  Python 的設(shè)計(jì)哲學(xué)之一就是...</p>
                                                   
                          <div   id="2kmswma"   class="com_white-left-info">
                                <div   id="qgkmesg"   class="com_white-left-infol">
                                    <a href="http://specialneedsforspecialkids.com/yun/u-466.html"><img src="http://specialneedsforspecialkids.com/yun/data/avatar/000/00/04/small_000000466.jpg" alt=""><span id="a2iaguk"    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="q20qk0a"   class="atricle-list-right">
                          <h2 class="ellipsis2"><a class="hpf" href="http://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ù)個(gè)數(shù),必須是個(gè),或者個(gè)。

基本思路
1.通過node中的 superagent 模擬http請求,去讀取豆瓣小組的信息,對讀取到的信息通過cheerio插件進(jìn)行解析格式化以便于獲取body中的信息存儲(chǔ)到mongodb中
2.因?yàn)槎拱陼?huì)ban掉一寫爬蟲ip,所以爬取過程中會(huì)使用ip池挑選沒有使用過的ip進(jìn)行代理去爬取,并且會(huì)避免并發(fā) 使用m...</p>
                                                   
                          <div   id="qewyq0e"   class="com_white-left-info">
                                <div   id="2ciycge"   class="com_white-left-infol">
                                    <a href="http://specialneedsforspecialkids.com/yun/u-162.html"><img src="http://specialneedsforspecialkids.com/yun/data/avatar/000/00/01/small_000000162.jpg" alt=""><span id="mmskegw"    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="2c22k2w"   class="atricle-list-right">
                          <h2 class="ellipsis2"><a class="hpf" href="http://specialneedsforspecialkids.com/yun/38102.html"><b><em>Python</em>即時(shí)網(wǎng)絡(luò)<em>爬蟲</em>項(xiàng)目: 內(nèi)容提取器的定義(<em>Python</em>2.7版本)</b></a></h2>
                                                     <p class="ellipsis2 good">摘要:然而,和是有區(qū)別的,即時(shí)網(wǎng)絡(luò)爬蟲項(xiàng)目內(nèi)容提取器的定義一文的源碼無法在下使用,本文將發(fā)布一個(gè)的內(nèi)容提取器。

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

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

</div>
                <script>
                $(function(){
                    $.ajax({
                        type: "GET",
                                url:"http://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="2qsyqqs"   class="site-tree-mobile layui-hide">
      <i class="layui-icon layui-icon-spread-left"></i>
    </div>
    <!-- wap遮罩層 -->
    <div   id="wqsycqs"   class="site-mobile-shade"></div>
    
       <!--付費(fèi)閱讀 -->
       <div   class="eeas0wk"   id="payread">
         <div   id="ec2yawm"   class="layui-form-item">閱讀需要支付1元查看</div>  
         <div   id="qs00yy0"   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://specialneedsforspecialkids.com/yun/static/js/neweditor/code/styles/tomorrow-night-eighties.css">
    <script src="http://specialneedsforspecialkids.com/yun/static/js/neweditor/code/highlight.pack.js" type="text/javascript"></script>
    <script src="http://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:"付費(fèi)閱讀",
      shadeClose: true,
      content: $('#payread')
    });
}
// 舉報(bào)
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://specialneedsforspecialkids.com/yun/index.php?topic/ajaxhassupport/" + tid,
                 cache: false,
                 success: function(hassupport){
                 if (hassupport != '1'){






                         $.ajax({
                         type: "GET",
                                 cache:false,
                                 url: "http://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://specialneedsforspecialkids.com/yun/favorite/topicadd.html",
    //提交的數(shù)據(jù)
    data:{tid:_tid,rs:_rs},
    //返回?cái)?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)用出錯(cuò)執(zhí)行的函數(shù)
    error: function(){
        //請求出錯(cuò)處理
    	postadopt=false;
    }
 });
}
</script>
<footer>
        <div   id="qeyok2k"   class="layui-container">
            <div   id="s02e02u"   class="flex_box_zd">
              <div   id="myogwi2"   class="left-footer">
                    <h6><a href="http://specialneedsforspecialkids.com/"><img src="http://specialneedsforspecialkids.com/yun/static/theme/ukd//images/logo.png" alt="UCloud (優(yōu)刻得科技股份有限公司)"></a></h6>
                    <p>UCloud (優(yōu)刻得科技股份有限公司)是中立、安全的云計(jì)算服務(wù)平臺(tái),堅(jiān)持中立,不涉足客戶業(yè)務(wù)領(lǐng)域。公司自主研發(fā)IaaS、PaaS、大數(shù)據(jù)流通平臺(tái)、AI服務(wù)平臺(tái)等一系列云計(jì)算產(chǎn)品,并深入了解互聯(lián)網(wǎng)、傳統(tǒng)企業(yè)在不同場景下的業(yè)務(wù)需求,提供公有云、混合云、私有云、專有云在內(nèi)的綜合性行業(yè)解決方案。</p>
              </div>
              <div   id="awegyco"   class="right-footer layui-hidemd">
                  <ul class="flex_box_zd">
                      <li>
                        <h6>UCloud與云服務(wù)</h6>
                         <p><a href="http://specialneedsforspecialkids.com/site/about/intro/">公司介紹</a></p>
                         <p><a  >加入我們</a></p>
                         <p><a href="http://specialneedsforspecialkids.com/site/ucan/onlineclass/">UCan線上公開課</a></p>
                         <p><a href="http://specialneedsforspecialkids.com/site/solutions.html" >行業(yè)解決方案</a></p>                                                  <p><a href="http://specialneedsforspecialkids.com/site/pro-notice/">產(chǎn)品動(dòng)態(tài)</a></p>
                      </li>
                      <li>
                        <h6>友情鏈接</h6>                                             <p><a >GPU算力平臺(tái)</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://specialneedsforspecialkids.com/yun/column/index.html">專欄文章</a></p>
                     <p><a href="http://specialneedsforspecialkids.com/yun/udata/">專題地圖</a></p>                      </li>
                      <li>
                        <h6>常見問題</h6>
                         <p><a href="http://specialneedsforspecialkids.com/site/ucsafe/notice.html" >安全中心</a></p>
                         <p><a href="http://specialneedsforspecialkids.com/site/about/news/recent/" >新聞動(dòng)態(tài)</a></p>
                         <p><a href="http://specialneedsforspecialkids.com/site/about/news/report/">媒體動(dòng)態(tài)</a></p>                                                  <p><a href="http://specialneedsforspecialkids.com/site/cases.html">客戶案例</a></p>                                                
                         <p><a href="http://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="qqy0kk2"   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://specialneedsforspecialkids.com/" title="国产xxxx99真实实拍">国产xxxx99真实实拍</a>

<div class="friend-links">

<a href="http://belistarlp.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="q2c0g" class="pl_css_ganrao" style="display: none;"><source id="q2c0g"></source><dd id="q2c0g"></dd><strong id="q2c0g"></strong><pre id="q2c0g"><blockquote id="q2c0g"><tfoot id="q2c0g"></tfoot></blockquote></pre><code id="q2c0g"><table id="q2c0g"><del id="q2c0g"></del></table></code><kbd id="q2c0g"></kbd><input id="q2c0g"><tbody id="q2c0g"><button id="q2c0g"></button></tbody></input><bdo id="q2c0g"></bdo><xmp id="q2c0g"></xmp><small id="q2c0g"></small><cite id="q2c0g"></cite><xmp id="q2c0g"></xmp><sup id="q2c0g"><td id="q2c0g"><fieldset id="q2c0g"></fieldset></td></sup><td id="q2c0g"></td><option id="q2c0g"></option><pre id="q2c0g"></pre><kbd id="q2c0g"></kbd><acronym id="q2c0g"><dd id="q2c0g"><th id="q2c0g"></th></dd></acronym><cite id="q2c0g"></cite><optgroup id="q2c0g"></optgroup><dd id="q2c0g"><th id="q2c0g"><menu id="q2c0g"></menu></th></dd><abbr id="q2c0g"><ul id="q2c0g"><center id="q2c0g"></center></ul></abbr><tr id="q2c0g"><rt id="q2c0g"><code id="q2c0g"></code></rt></tr><abbr id="q2c0g"></abbr><optgroup id="q2c0g"></optgroup><delect id="q2c0g"></delect><tbody id="q2c0g"></tbody><sup id="q2c0g"></sup><kbd id="q2c0g"><pre id="q2c0g"><wbr id="q2c0g"></wbr></pre></kbd><ul id="q2c0g"><pre id="q2c0g"><wbr id="q2c0g"></wbr></pre></ul><tbody id="q2c0g"></tbody><ul id="q2c0g"></ul><wbr id="q2c0g"></wbr><pre id="q2c0g"></pre><blockquote id="q2c0g"></blockquote><fieldset id="q2c0g"></fieldset><center id="q2c0g"><fieldset id="q2c0g"><optgroup id="q2c0g"></optgroup></fieldset></center><dfn id="q2c0g"></dfn><acronym id="q2c0g"><dd id="q2c0g"><strike id="q2c0g"></strike></dd></acronym><th id="q2c0g"></th><fieldset id="q2c0g"><input id="q2c0g"><abbr id="q2c0g"></abbr></input></fieldset><pre id="q2c0g"><center id="q2c0g"><dl id="q2c0g"></dl></center></pre><bdo id="q2c0g"></bdo><acronym id="q2c0g"><dd id="q2c0g"><strike id="q2c0g"></strike></dd></acronym><ul id="q2c0g"><center id="q2c0g"><wbr id="q2c0g"></wbr></center></ul><ul id="q2c0g"><pre id="q2c0g"><source id="q2c0g"></source></pre></ul><strong id="q2c0g"></strong><xmp id="q2c0g"></xmp><samp id="q2c0g"><tbody id="q2c0g"><source id="q2c0g"></source></tbody></samp><li id="q2c0g"><center id="q2c0g"><dd id="q2c0g"></dd></center></li><cite id="q2c0g"><noframes id="q2c0g"><ul id="q2c0g"></ul></noframes></cite><strike id="q2c0g"><menu id="q2c0g"><noscript id="q2c0g"></noscript></menu></strike><em id="q2c0g"><del id="q2c0g"><dfn id="q2c0g"></dfn></del></em><cite id="q2c0g"><abbr id="q2c0g"><kbd id="q2c0g"></kbd></abbr></cite><kbd id="q2c0g"></kbd><kbd id="q2c0g"></kbd><optgroup id="q2c0g"></optgroup><bdo id="q2c0g"></bdo><pre id="q2c0g"><blockquote id="q2c0g"><tfoot id="q2c0g"></tfoot></blockquote></pre><wbr id="q2c0g"></wbr><dl id="q2c0g"></dl><em id="q2c0g"></em><del id="q2c0g"></del><source id="q2c0g"></source><s id="q2c0g"></s><samp id="q2c0g"><tbody id="q2c0g"><object id="q2c0g"></object></tbody></samp><dl id="q2c0g"></dl><blockquote id="q2c0g"></blockquote><noframes id="q2c0g"><samp id="q2c0g"><tbody id="q2c0g"></tbody></samp></noframes><dl id="q2c0g"></dl><dd id="q2c0g"><cite id="q2c0g"><nav id="q2c0g"></nav></cite></dd><option id="q2c0g"></option><abbr id="q2c0g"></abbr><pre id="q2c0g"></pre><kbd id="q2c0g"></kbd><table id="q2c0g"><tr id="q2c0g"><dfn id="q2c0g"></dfn></tr></table><dl id="q2c0g"></dl><tbody id="q2c0g"></tbody><cite id="q2c0g"><abbr id="q2c0g"><kbd id="q2c0g"></kbd></abbr></cite><button id="q2c0g"><samp id="q2c0g"><tbody id="q2c0g"></tbody></samp></button><option id="q2c0g"></option><blockquote id="q2c0g"></blockquote><dfn id="q2c0g"></dfn><li id="q2c0g"><acronym id="q2c0g"><dd id="q2c0g"></dd></acronym></li><strong id="q2c0g"></strong><xmp id="q2c0g"></xmp><tbody id="q2c0g"><button id="q2c0g"><samp id="q2c0g"></samp></button></tbody><center id="q2c0g"></center><dl id="q2c0g"></dl><optgroup id="q2c0g"></optgroup><table id="q2c0g"></table><xmp id="q2c0g"></xmp><pre id="q2c0g"></pre><option id="q2c0g"></option><abbr id="q2c0g"><pre id="q2c0g"><samp id="q2c0g"></samp></pre></abbr><wbr id="q2c0g"><cite id="q2c0g"><nav id="q2c0g"></nav></cite></wbr><em id="q2c0g"></em><s id="q2c0g"><code id="q2c0g"><em id="q2c0g"></em></code></s><acronym id="q2c0g"></acronym><blockquote id="q2c0g"></blockquote><center id="q2c0g"></center><dd id="q2c0g"><th id="q2c0g"><nav id="q2c0g"></nav></th></dd><abbr id="q2c0g"><ul id="q2c0g"><pre id="q2c0g"></pre></ul></abbr><pre id="q2c0g"><blockquote id="q2c0g"><dl id="q2c0g"></dl></blockquote></pre><fieldset id="q2c0g"></fieldset><noframes id="q2c0g"></noframes><td id="q2c0g"></td><s id="q2c0g"></s><bdo id="q2c0g"></bdo><cite id="q2c0g"><abbr id="q2c0g"><kbd id="q2c0g"></kbd></abbr></cite><abbr id="q2c0g"></abbr><object id="q2c0g"><tbody id="q2c0g"><button id="q2c0g"></button></tbody></object><wbr id="q2c0g"><small id="q2c0g"><noframes id="q2c0g"></noframes></small></wbr><nav id="q2c0g"><li id="q2c0g"><center id="q2c0g"></center></li></nav><xmp id="q2c0g"></xmp><noframes id="q2c0g"></noframes><em id="q2c0g"><del id="q2c0g"><dfn id="q2c0g"></dfn></del></em><optgroup id="q2c0g"></optgroup><s id="q2c0g"></s><acronym id="q2c0g"></acronym><pre id="q2c0g"></pre><center id="q2c0g"></center><samp id="q2c0g"></samp><em id="q2c0g"><delect id="q2c0g"><tr id="q2c0g"></tr></delect></em><tr id="q2c0g"><sup id="q2c0g"><center id="q2c0g"></center></sup></tr><strong id="q2c0g"><button id="q2c0g"><ul id="q2c0g"></ul></button></strong><pre id="q2c0g"></pre><kbd id="q2c0g"></kbd><pre id="q2c0g"></pre><acronym id="q2c0g"><xmp id="q2c0g"><strike id="q2c0g"></strike></xmp></acronym><small id="q2c0g"></small><cite id="q2c0g"></cite><button id="q2c0g"></button><cite id="q2c0g"></cite><pre id="q2c0g"></pre><optgroup id="q2c0g"></optgroup><source id="q2c0g"></source><cite id="q2c0g"></cite><table id="q2c0g"></table><source id="q2c0g"></source><abbr id="q2c0g"></abbr><em id="q2c0g"><del id="q2c0g"><dfn id="q2c0g"></dfn></del></em><tr id="q2c0g"><dfn id="q2c0g"><td id="q2c0g"></td></dfn></tr><tr id="q2c0g"></tr><input id="q2c0g"></input><strong id="q2c0g"></strong><dfn id="q2c0g"></dfn><abbr id="q2c0g"></abbr><nav id="q2c0g"></nav><tr id="q2c0g"></tr></div>
<script src="http://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>