【发布时间】:2018-05-25 08:10:28
【问题描述】:
我正在尝试使用Osmosis 抓取几个元标记的信息
元素如下所示:
<meta property="og:title" content="“here's the content!">
我看到一个视频使用这个:
tag: "meta[property='og:title']@content"
所以我这样尝试:
.find('head')
.set({
description: "meta[property='og:title']@content"
})
但它不适用于我的小项目。我真的不知道如何正确地做到这一点。
任何帮助将不胜感激。
【问题讨论】:
标签: node.js web-scraping css-selectors