当我尝试根据Apify网站上的示例获取起始URL的标签时,出现错误2019-12-26T15:35:17.723Z INFO: request.userData.label: undefined
。
Cheerio刮刀example code:
async function pageFunction(context) {
const { request, log, skipLinks, $ } = context;
log.info(`request.userData.label ${request.userData.label}`);
}
Pupperrer刮刀example code:
async function pageFunction(context) {
const { request, log, skipLinks, page } = context;
log.info(`request.userData.label ${request.userData.label}`);
}