有一个网站可以显示这种或那种设备的盈利能力。您需要从某个标签中提取文本(每 5-10 分钟更改一次)。但它既没有类也没有 ID。
这是它显示的路径:
#myUL > li:nth-child(4) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > div:nth-child(3) > div:nth-child(1) > center:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(1)
尝试使用querySelector,但它返回null
document.querySelector('li:nth-child(4) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > div:nth-child(3) > div:nth-child(1) > center:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(1)').textContent
这是链接(我希望您可以将它们发布在这里) https://hashrate.no/asics/ez100pro
您需要从倒数第二列获取每个硬币的收入值等。
我将非常感谢您的帮助和建议。
使用 Microsoft Edge 功能,
Копировать путь к JS-коду我轻松获得了以下选择器:N行号在哪里更新:
我们得到代币列表及其收入