当我尝试根据 Apify 网站上的示例获取启动 URL 的标签时,我收到错误2019-12-26T15:35:17.723Z INFO: request.userData.label: undefined
.
Cheerio 刮板示例代码:
async function pageFunction(context) {
const { request, log, skipLinks, $ } = context;
log.info(`request.userData.label ${request.userData.label}`);
}
Pupperrer 刮板示例代码:
async function pageFunction(context) {
const { request, log, skipLinks, page } = context;
log.info(`request.userData.label ${request.userData.label}`);
}