logo
Loading...

出現AttributeError: 'NoneType' object has no attribute 'span'錯誤 - Cupoy

1.不知是不是改版??? 變成  期待度跟滿意度都是要如何改 <div class="levelte...

pycrawler

出現AttributeError: 'NoneType' object has no attribute 'span'錯誤

2019/12/30 01:43 PM
Python網路爬蟲論壇
邱筑
觀看數:0
回答數:3
收藏數:1
pycrawler

1.不知是不是改版??? 變成  期待度跟滿意度都是要如何改 <div class="leveltext">


2.另外問題 可以用 文字去搜尋 反向找節點嗎??

用程式 滿意度 而找到 <dl class="levelbox">


------------------------------------------------------------------

<dl class="levelbox">

                                    <dt>

                  <div class="level_name">期待度</div>

                  <div class="leveltext">

                    <span>69%</span>

                    網友想看

                  </div>

                  </dt>

                                                      <dd>

                    

                    <div class="level_name">滿意度</div>

                    <div class="leveltext">

                      <span class="count" data-run="0" data-num="3.2">3.2</span>

                      綜合評分

                    </div>

                  </dd>

 </dl>