中的一些方法 网页抓取工具 如 Page.getValue 方法通过指定模式来允许从文本中提取数据,该模式定义了如何捕获返回的文本的所需部分。 要捕获的值由 {{VALUE}} 在模式中。 例如,从“我的年龄是33岁”中捕获年龄。 模式 'My age is {{VALUE}}.' 将被使用。
Page.getValue
{{VALUE}}
'My age is {{VALUE}}.'
Page.getTagValue({"tag":{"equals":"p"}}, 'My age is {{VALUE}}.');