KRL query() を使用してネストされた DIV タグを取得したいのですが、
ERROR Rules.pm a8x40 show_xfers Ruleset a8x40 failed: html.query error - Invalid specification ">div" in query: div.recent-transfer>div
HTML フラグメントは次のとおりです (ファイルには複数あります)。
<div class='recent-transfer'>
<span>...</span>
<div> <!-- * * * -->
<div>...</div>
<div>...</div>
</div>
</div>
これが私の機能です:
recent = function() {
t = http:get(the_url).pick("$..content");
t.query("div.recent-transfer>div")
}
マークされたDIVを選択したい* * *
。DIV を取得するには、複数の query() ステートメントをチェーンする必要がありますか?