gedoor / MyBookshelf

阅读是一款可以自定义来源阅读网络内容的工具,为广大网络文学爱好者提供一种方便、快捷舒适的试读体验。
https://gedoor.github.io
GNU General Public License v3.0
7.57k stars 1.81k forks source link

div类型的表格怎么获取元素 #599

Closed ghost closed 2 years ago

ghost commented 2 years ago

https://www.81zw.com/search.php?q=n为例,其元素为

<div class="result-list">
  <div class="result-item result-game-item">
    <div class="result-game-item-pic">...<\div>
    <div class="result-game-item-detail">
      <h3 class="result-item-title result-game-item-title">
        <a cpos="title" href="/book/77836/" title="重生:我是DNF教父" class="result-game-item-title-link" target="_blank">
          <span>重生:我是DNF教父</span>
        </a>
      </h3>
      <p class="result-game-item-desc">...</p>
      <div class="result-game-item-info">...</div>
    </div>
  <div class="result-item result-game-item">...</div>

当我尝试用class.result-list@tag.div获取书籍列表时,书名、作者、分类、章节都聚集在第一个书籍; 而我用class.result-item获取书籍时,只能获取第一个书籍

ladia commented 2 years ago

你在书籍列表就应该填class.result-item