Enqueued link gets ignored #2255
-
|
Could you, please, help me figure out why only one url gets processed and the second one gets ignored? I want to process the second link too. Here is the code: import { CheerioCrawler } from 'crawlee';
const crawler = new CheerioCrawler({
async requestHandler({ request, enqueueLinks, log }) {
log.info(request.loadedUrl!);
await enqueueLinks({
urls: ['https://www.bricklink.com/ajax/clone/catalogifs.ajax?itemid=123906&iconly=0&pi=2']
});
}
});
await crawler.run([{
url: 'https://www.bricklink.com/ajax/clone/catalogifs.ajax?itemid=123906&iconly=0'
}]);The only difference between the two urls is an additional field Platform: Mac OS 14.2.1, crawlee@3.7.0, node v21.5.0. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
|
They have the same |
Beta Was this translation helpful? Give feedback.
-
|
Hey @B4nan , not sure if its a bug but even arbitrary urls such as a |
Beta Was this translation helpful? Give feedback.
enqueueLinksis a helper for finding URLs on the current page, if you want to add a URL to the queue that you already have somewhere, I'd just docrawler.addRequests(). Could be related, as what you are doing withenqueueLinksis not really tested anywhere (as it's not the suggested usage).