我在刮一页,用了刮擦和飞溅。页面包含一个下拉框(技术上是一个selecthtml元素)。每次在下拉框中选择一个元素,就会使用AJAX加载一个新页面。在
下面的HTML段是我正在处理的页面的简化版本:
<html>
<head><title>Title goes here ...</title></head>
<body>
<select class="foo">
<option value=100 data-reactid=1>One</option>
<option value=200 data-reactid=2>Two</option>
<!-- ... -->
<option value=900 data-reactid=9>Nine</option>
</select>
</body>
</html>
如何在程序上使用Splash“单击”并在响应对象中接收重新加载的AJAX页面?在
您可以尝试将Splash的的值填充
execute
端点与LUA脚本一起使用,该脚本将用每个^{select
,并返回结果。比如:当然,这还没有经过测试,但你可以从那里开始,然后玩它。在
相关问题 更多 >
编程相关推荐