如何解决splash.private_mode_enabled = false 不适用于 Splash 3.5
我想使用 Splash 3.5 抓取网站 link 并显示相关的“PUR”标签数据。 但是,即使我在下面使用 splash.private_mode_enabled = false,我也无法选择选项卡“PUR”数据。
function main(splash,args)
splash.private_mode_enabled = false
url = args.url
assert(splash:go(url))
assert(splash:wait(1))
rur_tab = assert(splash:select_all(".filterPanelItem___2z5Gb"))
rur_tab[5]:mouse_click()
assert(splash:wait(1))
splash:set_viewport_full()
return splash:png()
end
相关数据仍为标签“BTC”数据。
我在下面附上了相关的 HTML。
<div class="filterPanel___2zFYQ">
<div class="filterPanelItem___2z5Gb ">BTC</div>
<div class="filterPanelItem___2z5Gb ">ETH</div>
<div class="filterPanelItem___2z5Gb ">LTC</div>
<div class="filterPanelItem___2z5Gb ">USD</div>
<div class="filterPanelItem___2z5Gb active___1otJu">RUR</div>
<div class="filterPanelItem___2z5Gb ">Other</div>
<input type="text" class="searchText___3mLvd" placeholder="Search..." value=""></div>
截图如下。
非常感谢。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。