猿问

puppeteer获得网页数据??

网页源代码如下:
<td class="nums">

                    <i class="pk-no8">8</i>
                <i class="pk-no7">7</i>
                <i class="pk-no10">10</i>
                <i class="pk-no9">9</i>
                <i class="pk-no1">1</i>
                <i class="pk-no2">2</i>
                <i class="pk-no4">4</i>
                <i class="pk-no6">6</i>
                <i class="pk-no5">5</i>
                <i class="pk-no3">3</i>
            </td>

用puppeteer爬取的时候怎么样来获得这段代码中的数字:8,7,10,9,1,2,4,6,5,3


沧海一幻觉
浏览 505回答 1
1回答

一只名叫tom的猫

用css选择器.nums i,然后分别获取内容
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答